I was asked to make an Access (2003) application to help keep up with what our regional controllers are doing. I have a form that they would use for data entry - they select their name, the location at which they performed a task, the date, comments, etc.
I would like to have the selection in one combo box (their name)limit the selections available in another combo box (their locations). In other words, when "Jim" selected his name, the location combo box would only display Jim's locations.
cboRCNo is a list of names of regional controllers - here is the Row Source:
SELECT tblController.RCNo, tblController.RCName
FROM tblController
ORDER BY tblController.RCName;
cboLocationID is a list of locations that the controllers are responsible for - here is the row source:
SELECT tblLocations.LocationID, tblLocations.BranchNo, tblLocations.BranchName
FROM tblLocations
ORDER BY tblLocations.BranchNo;
I have a table (tblLocations) that associates the Branch Number to a controller - it has four columns:
LocationID (PK), Branch Number, Branch Name, and RCNo.
RCNo is a FK to tblController - which has 2 columns:
RCNo and Controller (Names).
All this is stored in a table called tblEvent - the combo boxes on the form are lookup fields in this table (which lookup values from the tables described above.)
Anyway - I have exhausted the usefulness (to me) of the help files, and have read several posts, but have not had any luck with this. Can someone Please point me in the right direction?
Thanks, PDUNCAN
Memphis, TN - USA
When I die, I want to die like my grandfather-- who died peacefully in
his sleep. Not screaming like all the passengers in his car.
I would like to have the selection in one combo box (their name)limit the selections available in another combo box (their locations). In other words, when "Jim" selected his name, the location combo box would only display Jim's locations.
cboRCNo is a list of names of regional controllers - here is the Row Source:
SELECT tblController.RCNo, tblController.RCName
FROM tblController
ORDER BY tblController.RCName;
cboLocationID is a list of locations that the controllers are responsible for - here is the row source:
SELECT tblLocations.LocationID, tblLocations.BranchNo, tblLocations.BranchName
FROM tblLocations
ORDER BY tblLocations.BranchNo;
I have a table (tblLocations) that associates the Branch Number to a controller - it has four columns:
LocationID (PK), Branch Number, Branch Name, and RCNo.
RCNo is a FK to tblController - which has 2 columns:
RCNo and Controller (Names).
All this is stored in a table called tblEvent - the combo boxes on the form are lookup fields in this table (which lookup values from the tables described above.)
Anyway - I have exhausted the usefulness (to me) of the help files, and have read several posts, but have not had any luck with this. Can someone Please point me in the right direction?
Thanks, PDUNCAN
Memphis, TN - USA
When I die, I want to die like my grandfather-- who died peacefully in
his sleep. Not screaming like all the passengers in his car.