Which should I use?

  • Thread starter Thread starter Bonnie
  • Start date Start date
B

Bonnie

Using A02 on XP. Which should I use? Does one have any
benefit over the other?

DoCmd.GoToRecord , , acNewRec

DoCmd.RunCommand acCmdRecordsGoToNew

Thanks for any comments and advice.
 
Also the first one lets you explicitly name the object...

DoCmd.GoToRecord acDataForm,"FormName", acNewRec

....whereas the RunCommand will be applied to the object with focus. In
some situations this might not be the object you intend.
 
Rick, thanks for the extra info. I'm learning and love the
additional information that fills in the commas, so to
speak. I appreciate the time you take to help folks such
as myself.
 
Back
Top