Share via

Access OnClick error

Anonymous
2019-04-11T14:16:38+00:00

I created a button on a form to Open Form and it gives me this error..."This action requires an Object Name Argument". 

It is a simple event and I have never gotten this error before

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2019-04-13T16:42:12+00:00

    No it is that simple but when I created a new button, and changed the form to a report it worked.  Very odd!  I think Access has some gremlins in it!  Thanks for the help though!

    Was this answer helpful?

    0 comments No comments
  2. DBG 11,711 Reputation points Volunteer Moderator
    2019-04-11T15:07:46+00:00

    Hi. Your macro looks fine. There must be something else going on. Do you have other macros or VBA at play here? Just curious...

    Edit: Just realized this is a duplicate post.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2019-04-11T14:59:04+00:00

    You have unwisely used spaces in the object name.  Try wrapping the name in square brackets in the macro dialogue:

        [Grocery Lockout Dates]

    Spaces or special characters should be avoided in object names.  Instead use CamelCase or represent a space by an underscore character, Grocery_Lockout_Dates.

    Was this answer helpful?

    0 comments No comments