Bill Bisco
Custom User Title
- Local time
- Today, 11:22
- Joined
- Mar 27, 2009
- Messages
- 92
I have 3 tables, tblOptions, tblProcesses, and tblStations. Every Process has 1 Option while 1 Option can belong to many Processes. Each Process belongs to 1 Station while 1 Station can have many Processes.
So essentially there is a many to many relationship between Options and Stations. (The same Option can exist in many Stations while the same Station can have many Options).
So, I'm trying to make a query that displays all the Options that appear in 1 particular station. My SQL code is as follows:
Anyway, this obviously doesn't work because there is no connection between tblStations and tblOptions, it goes ahead and displays the Options that don't belong to that Station.
I don't want to use a Totals Query because I want the results to be editable. Any help is appreciated.
Sincerely,
Bill
So essentially there is a many to many relationship between Options and Stations. (The same Option can exist in many Stations while the same Station can have many Options).
So, I'm trying to make a query that displays all the Options that appear in 1 particular station. My SQL code is as follows:
Code:
SELECT tblStations.[Station Name], tblStations.Side, tblOptions.OptionID
FROM tblStations, tblOptions
WHERE (((tblStations.[Station Name])=[Forms]![frmWelcomeForm]![cboProcessSelectTogetherLS&RS]) AND ((tblStations.Side)="LS"));
Anyway, this obviously doesn't work because there is no connection between tblStations and tblOptions, it goes ahead and displays the Options that don't belong to that Station.
I don't want to use a Totals Query because I want the results to be editable. Any help is appreciated.
Sincerely,
Bill