I get this error evertime when i run this code. I have the database open already from other code.
Does anyone know why I'm getting this error. Are there components that need to be set up in VB or does this have to do something with my syntax or fields in the database?
Dim strID As String
strID = Trim(InputBox("Enter Name for search.", "Search Box"))
Set RS = DB.OpenRecordset("SELECT Sex " & "FROM AddressBook " & _
"WHERE [Name] Like '*" & strID & "*'")
Does anyone know why I'm getting this error. Are there components that need to be set up in VB or does this have to do something with my syntax or fields in the database?
Dim strID As String
strID = Trim(InputBox("Enter Name for search.", "Search Box"))
Set RS = DB.OpenRecordset("SELECT Sex " & "FROM AddressBook " & _
"WHERE [Name] Like '*" & strID & "*'")