Hi - I could really do with some help.
I am trying to create an action that will open a list of items in Access 2007 that are filtered acording to what has been selected in a combolist.
An example of what I am trying to do is included in the Northwind Access 2007 database but I can't work out how to do it. In the Northwind Database they use this twice:
1) In the Login Screen When you press Login it opens a screen and passes a temporary variable into the new form (home form) that it opens to only show that employees items.
2) In the home screen at the top of the screen you can select the name of someone or change the selection and on select it changes the details in the open form accordingly.
I have been trying to work through the macros to replicate this functionality but I am finding it difficult.
What I have been able to do is:
* Open a form or a report filtered based on a parameter that Access prompts me for (eg CurrentEmployee) when I open it. But I need to enter it manually.
* Create the combobox that selects an employee and then either opens a form when you select the record or create a button that opens a form next to the selection box.
What I can't do and need help with is I can't work out how to get the field that I am selected in the ComboBox into the parameter when I open a form that requires that parameter.
An alternative approach would be to use the OpenForm macro when I press the button and use the "Where Condition". However, again I can't work out how to get the selected value as a temporary variable into the Where Condition. All the examples I find get the variable from a table rather than from the combobox.
Please help.
Thanks,
Lara
I am trying to create an action that will open a list of items in Access 2007 that are filtered acording to what has been selected in a combolist.
An example of what I am trying to do is included in the Northwind Access 2007 database but I can't work out how to do it. In the Northwind Database they use this twice:
1) In the Login Screen When you press Login it opens a screen and passes a temporary variable into the new form (home form) that it opens to only show that employees items.
2) In the home screen at the top of the screen you can select the name of someone or change the selection and on select it changes the details in the open form accordingly.
I have been trying to work through the macros to replicate this functionality but I am finding it difficult.
What I have been able to do is:
* Open a form or a report filtered based on a parameter that Access prompts me for (eg CurrentEmployee) when I open it. But I need to enter it manually.
* Create the combobox that selects an employee and then either opens a form when you select the record or create a button that opens a form next to the selection box.
What I can't do and need help with is I can't work out how to get the field that I am selected in the ComboBox into the parameter when I open a form that requires that parameter.
An alternative approach would be to use the OpenForm macro when I press the button and use the "Where Condition". However, again I can't work out how to get the selected value as a temporary variable into the Where Condition. All the examples I find get the variable from a table rather than from the combobox.
Please help.
Thanks,
Lara