I am curious if there is any major different between using the the two methods.
DoCmd.GoToRecord , , acNewRec
... set form control values
DoCmd.RunCommand acCmdSaveRecord
OR
Me.Recordset.AddNew
... set recordset values here (not sure of the syntax)
Me.Recordset.Update
In particular, I am looking to have a form have a bulk option button where upon clicking the script:
DoCmd.GoToRecord , , acNewRec
... set form control values
DoCmd.RunCommand acCmdSaveRecord
OR
Me.Recordset.AddNew
... set recordset values here (not sure of the syntax)
Me.Recordset.Update
In particular, I am looking to have a form have a bulk option button where upon clicking the script:
- stores the values from a couple fields into variables.
- asks how many new entries to add
- creates a new record
- saves the variables to the fields
- saves the record
- continues loop until all entries are created.
- Returns to entry you started at/copied from to finish editing that entry.