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

updating a field in a linked form

Status
Not open for further replies.

brian30

Technical User
Mar 3, 2001
5
CA
i have the following scenario:

a parent form, and several linked forms. i get to the linked forms via command buttons. each linked form shares a field with the parent form (e.g. age). when i put in the value in the parent form (for age), the linked forms don't show the value in the respective fields (i.e. in the age fields in the linked forms).

I've tried dlookup in an after event procedure but that isn't working. i've also tried dlookup in the default value setting.

should i be using dlookup or is there another function that will do the trick?

brian thomas
 
If the underlying tables of these forms are related (in the relationship diagram), the data should show up in the linked form.

However, you may try the "OpenArgs" parameter of the "Openform" method. With "OpenArgs", the linked form can get data from the parent form when the linked form is open.

Seaport
 
thanks for the advice. i'm not had much luck yet though. do you have any lines of code to share? perhaps that will make things clearer.

brian thomas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top