There a bunch of bound textboxes on the form, including "LastName". It winds through the recordset until the current records "LastName" field is the same as what the user has entered into "FindName", at which point it stops, and the current record is displayed in the bound text boxes.
It works as it should, except for discriminating between Smith, smith and SMITH.
The
Set rs = db.OpenRecordset("SELECT * FROM Inspectors WHERE afield ='" & searchtext.Text & "'")
Line will be helpfull though, thanks - I'm trying to figure out how to make VB use a SQL Statement instead of searching bound date text boxes anyway.
Can you tell me how one would connnect an "INSERT" SQL Statement to a command button on a VB form?
Richard