I also added a drop down box to the main switchboard to select a "user". Its purpose is so the filter through all the records and pull up only the list of drawing # for that specific drafter.
So I have a table called tblSign_In which has UID auto number, and the employees name. This will be the user names for the drop down of the Main Switchboard.
I have a table called SHEET LIST that list all the data I need to display. This will end up holding tens of thousands of records of information about drawing. I added to this table a field called the LogInID field (UID) to link back to the tblSign_IN, and the correct number and combination.
I also have a query called qrySHEET LIST which selects all SHEET TABLE and inner joins to the tblSign_IN to pull the Employee Name linking on a LogInID field.
What I was trying to do is filter SHEET LIST form (my output form) by the user selected on the MAIN SWITCH form in the drop down box I called cboSignInEmployeeName.
For example:
Sheet List (tbl) might contain information like: Sheet# 22a6; description Dryer; build hours:12; drafter #4.
qrySHEET LIST (also my ouptut data) is pulling all the above, but replace 4 with actual drafter’s name, John Smith
To filter, I have two methods:
The query is my record source for my form SHEET LIST, so I added
Expand|Select|Wrap|Line Numbers
- WHERE (((tblSIGN_IN.[Employee Name])=[Forms]![MAIN SWITCHBOARD]![cboSignInEmployeeName]));
Forms!MAIN SWITCHBOARD!cboSignInEmployeeName
I removed that, went into the forms property:
Change Filter on Load to Yes, and
added
[Forms]![MAIN SWITCHBOARD]![cboSignInEmployeeName]
but again I am prompted to enter a value.
I also tried to play with VBA coding, but skill is limited in that matter, so I really had no idea what I was doing.