Set dbSAP = CurrentDb
On Error GoTo Err_Exit:
'select from Redirects Table
strSQL = "SELECT * FROM ReDirects WHERE Redirect = True"
Set rstRedirects = dbSAP.OpenRecordset(strSQL, dbOpenDynaset)
MsgBox(rstRedirects!Name)
The above code will select the first record from ReDirects even though all the records have the field Redirect set to False. I would expect it not to return any
On Error GoTo Err_Exit:
'select from Redirects Table
strSQL = "SELECT * FROM ReDirects WHERE Redirect = True"
Set rstRedirects = dbSAP.OpenRecordset(strSQL, dbOpenDynaset)
MsgBox(rstRedirects!Name)
The above code will select the first record from ReDirects even though all the records have the field Redirect set to False. I would expect it not to return any