When I run code
Set rsResp = dbR.OpenRecordset(“Search_Result”, dbOpenTable)
On Error Resume Next
txtStr = rsResp![Last Name]
If txtStr = “” Then
MsgBox “Search Produced No Results! Please, try again!”
End If
I am getting an error “Type mismatch” at the first line.
My table has few columns with text datatype and 2 columns with Number datatype.
I am checking my table – it is populated with 2 rows of records, but my code
Set rsResp = dbR.OpenRecordset(“Search_Result”, dbOpenTable)
wouldn’t open it.
Thanks for looking into it