carpetbelly
Technical User
I've got a form with a combo box on it and some text boxes.
The combo box is prepopulated with a list in the 'Row Source' property with the following SQL
SELECT [qryStaffEnt].[StaffName] FROM qryStaffEnt;
So basically just trying to populate it with a bunch of staffnames.
The 3 other text boxes I'm trying to populate from two other tables which data I can obviously just stick into a query.
I've been trying to do it by seperate SQL statements but that's been coming up as invalid and judging by the error messages it seems I need to use a recordset.
How would I go about matching the name selected in the combobox to records in a recordset then populate the other text boxes with the fields I need?
The combo box is prepopulated with a list in the 'Row Source' property with the following SQL
SELECT [qryStaffEnt].[StaffName] FROM qryStaffEnt;
So basically just trying to populate it with a bunch of staffnames.
The 3 other text boxes I'm trying to populate from two other tables which data I can obviously just stick into a query.
I've been trying to do it by seperate SQL statements but that's been coming up as invalid and judging by the error messages it seems I need to use a recordset.
How would I go about matching the name selected in the combobox to records in a recordset then populate the other text boxes with the fields I need?