I am using Access 2007.
Form A is based on a query with a parameter prompt for Formatted Cost Code. Later on I developed Form B based on a query that also has a parameter prompt for Formatted Cost Code.
I have Form A in the Main Menu. I then set up a button for the user to open Form B.
As I went through the wizard to create this button I checked "open the form and find the specific data to display", and for matching data I clicked on the Formatted Cost Code field for Form A and Form B.
I want the user to be able to open Form B based on the value they used when opening Form A and not have to enter the Formatted Cost Code again!
This is not happening. When the user clicks on the button to open Form B they are being prompted for the Formatted Cost Code.
When I checked the macro created under the On Click property of this new button it shows the following under the Where Condition,
="[Formatted Cost Code]=" & "'"&[Formatted Cost Code]&"'"
Is this correct? Do I need to change something here?
Form A is based on a query with a parameter prompt for Formatted Cost Code. Later on I developed Form B based on a query that also has a parameter prompt for Formatted Cost Code.
I have Form A in the Main Menu. I then set up a button for the user to open Form B.
As I went through the wizard to create this button I checked "open the form and find the specific data to display", and for matching data I clicked on the Formatted Cost Code field for Form A and Form B.
I want the user to be able to open Form B based on the value they used when opening Form A and not have to enter the Formatted Cost Code again!
This is not happening. When the user clicks on the button to open Form B they are being prompted for the Formatted Cost Code.
When I checked the macro created under the On Click property of this new button it shows the following under the Where Condition,
="[Formatted Cost Code]=" & "'"&[Formatted Cost Code]&"'"
Is this correct? Do I need to change something here?