Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic Parameter Prompts Between Forms 2

Status
Not open for further replies.

JOEYB99

Technical User
Jul 9, 2008
121
CA

I am using Access 2007.

Form A is based on a query that has a parameter prompt for something called Formatted Cost Code. Later on I developed Form B based on a query that also had a parameter prompt for the Formatted Cost Code.

I have Form A set up on 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 specific data to display", then for the 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 Form B it always prompts 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 Where Condition,

="[Formatted Cost Code]=" & "'" &[Formatted Cost Code] & "'"

Is this correct? Do I need to change something here?


 
Have a look here:
faq701-6763

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top