Rik_StHelens
Registered User.
- Local time
- Today, 00:12
- Joined
- Sep 15, 2009
- Messages
- 164
Hi
I have a form that I am using to filter possible parameters for a query.
I have 3 unbound combo boxes in the following order:
1. SELECT DISTINCT [tblFleet].[Customer] FROM tblFleet WHERE [Customer]>""
(allows the user to select a customer who is NOT just a tyre dealer - hence the distinct statement)
2. SELECT tblFleet.FleetName WHERE tblFleet.Customer = Forms!Form1!Combo22
(should show all fleets belonging to a customer, based on the previous combo box value)
3. Select tblVehicle.RegistrationNumber WHERE tblVehicle.FleetName = Forms!Form1!Combo2
(allows the user to select a registration number based on the previous combo box value)
At the moment this is just a test to make sure that i can get it working, so i have not used names for form objects etc other than the standard ones given.
The first combo box displays a list of customers, however, the second combo box says "the record source '~sq_cForm1_~sq_cCombo2' does not exist on this form or report.
Is there something wrong with my SQL or is it the way I am going about filtering possible parameters
Many Thanks
I have a form that I am using to filter possible parameters for a query.
I have 3 unbound combo boxes in the following order:
1. SELECT DISTINCT [tblFleet].[Customer] FROM tblFleet WHERE [Customer]>""
(allows the user to select a customer who is NOT just a tyre dealer - hence the distinct statement)
2. SELECT tblFleet.FleetName WHERE tblFleet.Customer = Forms!Form1!Combo22
(should show all fleets belonging to a customer, based on the previous combo box value)
3. Select tblVehicle.RegistrationNumber WHERE tblVehicle.FleetName = Forms!Form1!Combo2
(allows the user to select a registration number based on the previous combo box value)
At the moment this is just a test to make sure that i can get it working, so i have not used names for form objects etc other than the standard ones given.
The first combo box displays a list of customers, however, the second combo box says "the record source '~sq_cForm1_~sq_cCombo2' does not exist on this form or report.
Is there something wrong with my SQL or is it the way I am going about filtering possible parameters
Many Thanks