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

How Do I Open a new form at a specific record when....

Status
Not open for further replies.

bluemat

Technical User
Feb 5, 2002
61
MX
How Do I Open a new form at a specific record when.... the record is not created.

Hmm

I have a main form - linked to a main table. From here I want users t be able to add info in other forms, but I want all forms to share the same ID-

How can I open the form at a new record which already has the shared ID of the main form in place -the same as?
 
You first need to save the record being used by the main form. The other forms won't see the record until you do, because the new record hasn't yet been written to the table. It only exists in a storage buffer for the main form.

For example, you could use the following statement in the main form to save the new record before opening another form:
Code:
DoCmd.RunCommand acCmdSaveRecord
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top