I may have completely misread this, but it seems like this thread is about the relationship between a table (or query, which is really a temporary table) and a form.
A form is a window into a table. The purpose is to format, position, and display fields contained in a record of a table.
I am going to assume you want to view and/or edit the fields of your table. I'm also going to assume that table is tblCustomers and contains fields ID, FName, LName, Cust#, Site, and Speciality. ID is the primary key and is Autonum.
I am going to assume the form is frmCustomer, and the Record Source is tblCustomers. There would be fields such as txtFName, txtSite, and any others to display. I'll get to the combobox later. Each textbox on the form should be bound to the table. For textbox txtSite, the Name property should be txtSite, and the ControlSource property should be Site. See assumptions above. This should be done for all the textboxes.
Now you can navigate tblCustomers using the form frmCustomer. The small first, previous, next, and last buttons at the bottom-left of the form border will allow you to do that. Not necessarily in order. The record number isn't necessarily the ID field, but might be. Not as convenient as you want, but at this point it should do everything EXCEPT jump to a specific record based on a name in a combobox.
If your project now works as you need it to, you are ready to add the combobox, which I'm assuming is named cbxSelectName. cbxSelectName will have 2 columns, the ID and the composite name. Set the ColumnWidths property to 1";2" for now, although you will change this to 0";2" later to hide the ID column. ColumnCount will be 2, and BoundColumn will be 1. RowSource will be changed to include the ID field, and should look something like
- SELECT ID, [LName] & ", " & [FName] AS SelName FROM tblCustomers ORDER BY LName, FName
And finally, the OnClick event will need some VBA code to show the chosen record. A simple way is
-
Private Sub cboSelectName_Click()
-
Me.Filter = "ID=" & cboSelectName
-
End Sub
This will render the Access-supplied navigation buttons worthless. If you need them, we can slightly modify the above.