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

PreLoading fields for new record

Status
Not open for further replies.

vfisher

Programmer
Apr 15, 2002
40
US
This is probably an easy thing to do but....

I am using Access 97. My users select a record and on that form is an edit and add button. When the Add button is clicked I open a new form in add mode, but I need to populate most of the fields from the current record, which is data from two tables. I've tried to use the default value from the current form to populate the fields on the new form. This seems to be a problem because the records are locked from the previous form so I can't write the new record. If I close the previous form, I don't have access to form fields any more.

Any help would be greatly appreciated.

Thanks,
 
I think the easiest method here would be to use the OpenArgs from the Docmd.OpenForm action to pass the key inform to the create new form then use some code in the On Open property to populate the fields. Sandy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top