Link to home
Start Free TrialLog in
Avatar of Eirman
EirmanFlag for Ireland

asked on

What's The Syntax Error Generated By Access Macro Conversion

I created a Button in Access to open another form with the same record selected.
(The wizard created a Macro which worked fine).

I then "converted the Form's Macro to VBA "
The conversion produced faulty VBA (Expected end of statemend of statement Error)
Docmd.OpenForm "VOCAB ENTRY", acNormal, "", "[THEWORD]=" &" '" [&TextTHEWORD] & "'", , acNormal

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Anders Ebro (Microsoft MVP)
Anders Ebro (Microsoft MVP)
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you can share a database, (without data), and just the single form you are converting, which can reproduce the problem, I can forward it to the access team, and log a bug on it.
Avatar of Eirman

ASKER

That works - Well spotted!
Thank You Anders
Avatar of Eirman

ASKER

I'm using Access 2013 so the bug may be fixed in later versions.

I'll recreate the wizard / macro and post some relevant screenshots tomorrow.
Avatar of Eirman

ASKER

As promised ....


User generated image
User generated image
User generated image
User generated image
User generated image
I was able to reproduce this in my own version (Office 2019). I will forward to the dev team.
Avatar of Eirman

ASKER

Thanks again Anders.