Which should I use?

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.
 
R

Rick Brandt

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.
 
B

Bonnie

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.
 

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