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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linking on one form to another

Status
Not open for further replies.

seddowolf

Technical User
Oct 25, 2000
1
US
I am trying to build a form that is link to another form .The problem is that I put a button to access the second form but I need to have it go to matching information of the first one . Ex--- Customer form that shows a note id number(from notes table) with a butto going to notes I can open the form with this but I want it to go to the appropiate note that was referenced on the customer form. Help please thanks
 
In your DoCmd.OpenForm statement, there is a place to put a WHERE clause, something like:

"WHERE [NoteID]=Me!NoteID

Look in the help under OpenForm

Kathryn


 
Another thing you might try is using the wizard when you create the command button. In the in the third dialog screen, after you select the form to open, you are offered two choices:

Open the form and find specific data to display,

and

Open the form and display all records.

If you choose the first option, the next dialog screen allows you to set the linking criteria between the two forms.

This is used to create a string called strLinkCriteria that will be used in the DoCmd statement opening the form.

Larry De Laruelle
larry1de@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top