Access: the code contains a syntax error

Anonymous
2019-09-24T20:04:37+00:00

When I try and place a command button on a form I get the following message:

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
{count} vote

18 answers

Sort by: Most helpful
  1. Anonymous
    2019-09-27T00:19:55+00:00

    Okay so the bitness not being the issue.  What happens if you create a brand new database and place a command button on a blank Form?

    0 comments No comments
  2. Anonymous
    2019-09-27T00:27:33+00:00

    I just uninstalled Office (32 BIT) and reinstalled the 64 BIT version. It installed Access along with Word, Excel, Outlook and Publisher. I tried to install a command button and the wizard came up without the error. Hooray! When it was reinstalling the programs it posted the status saying "Office 365 Home Premium"; is that why Access installed? Thanks for hanging in there with me. I believe all is well. This will be my last reply.

    0 comments No comments
  3. Anonymous
    2019-09-27T05:54:47+00:00

    Well now, glad to hear that worked.  However, note, not too many folks out there use the 64 bit version of Office let alone Access.  So when posting for any additional help please make sure to note that because there is a difference albeit slight but it's there.

    0 comments No comments