Argument | Description |
objecttype | One of the following intrinsic constants: |
acActiveDataObject (default) acDataForm acDataQuery acDataTable | |
objectname | A string expression that's the valid name of an object of the type selected by the objecttype argument. |
record | One of the following intrinsic constants: |
acFirst acGoTo acLast acNewRec acNext (default) acPrevious | |
If you leave this argument blank, the default constant (acNext) is assumed. | |
offset | A numeric expression that represents the number of records to move forward or backward if you specify acNext or acPrevious for the record argument, or the record to move to if you specify acGoTo for the record argument. The expression must result in a valid record number. |
DoCmd.GoToRecord acDataForm, "Employees", acGoTo, 7