need a line of code to commit the new record to the table

J

Joe Clark

I'm working on a form that has a button leading the user to a related
form, and I get an error if somebody begins a new record on the parent
form, then clicks the link to go to the child form *before* the new
record has been committed to the table (before data entry is complete,
i.e. when the pencil is still visible in the record selector area).
What's the command to "finish" the record?
 
G

Guest

This is what I would use in the button click event on the main form:

DoCmd.RunCommand acCmdSaveRecord
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top