codeWarrior456
Technical User
I have a database that is setup with a login screen. Users are prompted to login, and if they are successful the database stores 3 pieces of information about the user in global variables which I declared in a code module. What I am trying to do is when the user clicks on a button, I want the database to open the a form that is filtered based on the information stored in those variables. Is there a way to filter the form using a variable?
Illustration of problem:
1. User Logs in
2. Database stores users branch id in a global variable
3. User clicks on a form to edit branch information.
4. A branch form opens.
5. The branch form contains information for all the branches. However, the form should be filter to only display the branch information that is relevant to the user which is determined by using the branch id variable that was stored at login. (This is the part that I am stuck on).
Thanks in advance for any help/suggestions.
Illustration of problem:
1. User Logs in
2. Database stores users branch id in a global variable
3. User clicks on a form to edit branch information.
4. A branch form opens.
5. The branch form contains information for all the branches. However, the form should be filter to only display the branch information that is relevant to the user which is determined by using the branch id variable that was stored at login. (This is the part that I am stuck on).
Thanks in advance for any help/suggestions.