Datasheet

ErrorCode ErrorString
2499 You can’t use the GoToRecord action or method on an object in Design
view. Try one of the following:
• Switch to Form or Datasheet view for a form.
• Switch to Datasheet view for a query or table.
• If you are running a macro or Visual Basic procedure containing an
action that opens the object, set the View argument to the correct
view before you carry out the GoToRecord action.
2500 You must enter a number greater than zero for a Repeat Count argu-
ment. You tried to use the RunMacro action or method, but you entered
a value less than zero (or an expression that evaluates to less than zero)
in the Repeat Count argument. To run the macro once, leave this argu-
ment blank.
2501 The | action was canceled. You used a method of the DoCmd object to
carry out an action in Visual Basic, but then clicked Cancel in a dialog
box. For example, you used the Close method to close a changed form,
then clicked Cancel in the dialog box that asks if you want to save the
changes you made to the form.
2502 The action or method requires a Macro Name argument.
You tried to use the RunMacro action or method, but you left the
Macro Name argument blank.
• Microsoft Access tried to create a custom menu bar for a form or
report, but the Menu Macro Name argument of the AddMenu action
is blank. In the Menu Macro Name argument, enter the name of a
macro or macro group that is in the current database.
2503 You can’t use this action with the DoCmd object. For a list of the
actions that the DoCmd object doesn’t support and some alternatives to
using these actions, click Help. Any actions that aren’t in this list can
be used with the DoCmd object.
2504 The action or method requires at least | argument(s). You tried to run
a macro containing an action or used a method or action with the
DoCmd object, but you didn’t set the required number of arguments.
For example, if you use the MoveSize action, you must set at least one
of the four arguments.
2505 An expression in argument | has an invalid value. You tried to run a
macro or used the DoCmd object in Visual Basic. The argument num-
ber above is the position of the argument as it appears in the Macro
window, the Action Failed dialog box, or the Object Browser (if you’re
using the DoCmd object). Try one of the following:
Appendixes for Web Site
P
ART VI
40