DB and recordset names?

  • Thread starter Thread starter Adrian Parker
  • Start date Start date
A

Adrian Parker

When I create a Form using a wizard, what value does the Name property get
for the DB connection, and the recordset?

I want to do something like:
Recordset.AddNew
So when the form opens, it'll start on a new record. But I do not know the
name of the Recordset object so that I can refer to it's methods.

Same with the Connection variable. What name is given to this object? How
do you find this out?

I've searched good without luck.



Adrian
 
DoCmd.GoToRecord acDataForm, Me.Name, acNewRec

will cause the form to go to a new record. You can also refer to the form's
recordset with Me.Recordset.
 
Back
Top