Save record while form is open (1 Viewer)

geno

Registered User.
Local time
Today, 15:07
Joined
Jun 19, 2000
Messages
243
HI,
I've searched the site and can't quite find anything to help me. I have a form to enter in customer informaton, then a button to open another form to enter in customer preferences. The second form has a where clause [customerID]=[Forms]![frmcustomer]![customerID]. This works good for all the records except the new entry. Is there a way to update the new record so when the user clicks to go to the second form that record will show? Thanks
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 10:07
Joined
Feb 19, 2002
Messages
43,302
In the click event of the button, before you open the second form, add the following:

DoCmd.RunCommand acCmdSaveRecord
 

geno

Registered User.
Local time
Today, 15:07
Joined
Jun 19, 2000
Messages
243
Thanks, worked.
 

Users who are viewing this thread

Top Bottom