DoMenuItem for adding a record

F

Fredrated

What is the DoMenuItem command to add a record to the table a form is using
as a recordsource?

Thanks

Fred
 
A

Allen Browne

To take the user to a new record so they can enter it:
RunCommand acCmdRecordsGotoNew

To actually add a new record, use AddNew and Update on the RecordsetClone of
the form. Then set the form's Bookmark to the clone set's. (This approach
has the advantage of not having to Requery the form to discover the new
record.)
 

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