I have a VB6 form which when opened connects to an Access 2000 database named CustomerDetails and displays all the fields of the first record in TextBoxes. Using the Data Control Bar on the form I am able to move to next previous last and first records.
However I need to code a ControlButton to search for a record by asking the user to type in the value of a field. For example, to run a search for a Customer, I want the user to type in a CustomerName and have the code look for that CustomerName in the Customer field of the already open recordset and have the form display that record with its fields for that Customer.
The ADO connection has already been made by opening of the form and the recordset is already visible.
Any help is much appreciated.
However I need to code a ControlButton to search for a record by asking the user to type in the value of a field. For example, to run a search for a Customer, I want the user to type in a CustomerName and have the code look for that CustomerName in the Customer field of the already open recordset and have the form display that record with its fields for that Customer.
The ADO connection has already been made by opening of the form and the recordset is already visible.
Any help is much appreciated.