I am trying to be able to let users do a search for a name in a database. If the name is partially correct (for example names are Zwork, Ztest, and Zbob. and they just typed 'Z') I would like them to be able to step through a list. I already have a recordset that can be navigated by a recordset navbar. I also have a successful query if they hit the name exact. However, when they just enter 'Z' the user only gets the first Z and if you use the recordset navbar to navigate to the next record it goes to the beginning of all records. This is the code I am using.
Sub btnNameSearch_onclick()
rsITSxxx.close
newSQL = "Select * from itsxxx where account_name like '%" & tbNameSearch.value & "%'"
rsITSxxx.setSQLText(newSQL)
rsITSxxx.open
I hope some of this made sense. Thanks for looking at it.
Kevin
Sub btnNameSearch_onclick()
rsITSxxx.close
newSQL = "Select * from itsxxx where account_name like '%" & tbNameSearch.value & "%'"
rsITSxxx.setSQLText(newSQL)
rsITSxxx.open
I hope some of this made sense. Thanks for looking at it.
Kevin