I have a database with a simple login form"agent login" (calls to table for username and login, username is combobox) button that loads second form once logged in, I have another form which displays customer information for workers"agent homepage" Based on a customer information table(with a field for the assigned worker), I want to be able to setup the login form to load the other form with a filter, basically I want the form to display only customer records which will be assigned to specific workers. I am having trouble with the coding. I have a field in the second form with the workers login(for the filter). Is there any way to have my login form filter the records displayed on the second form based on the user which logs in? I am kinda stumped on this one. Any help would be greatly appreciated.
I read tutorials stating I could add to the code in the button on my login form:
DoCmd.OpenForm "AgentView" (something was added here to filter the results on load) I just dont know code at all.
Edit: Even if I cant filter on load, what would be another effective method to display only customer records with a specific employee assigned to them in the table?