Link to home
Start Free TrialLog in
Avatar of HKFuey
HKFueyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Access runtime error 3270 on AutoExec macro

Access runtime error 3270

Trying to open Access from another App with parameters.

This normally works:
"C:\Program Files\DBName\MyDb.accde" /CMD S%key

It sends a parameter to the DB and the DB opens with a query on that parameter. On one client I'm getting a box "Macro Single Step" (SeeUser generated image Pic)

PC is Win 10, it has Office 365 installed, I'm running Access from runtime version 2013.

Anyone know how to fix this?
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

Have you put the file in one of the Trusted Locations to have VBA enabled ?
You can also use the utility from here : https://www.accessribbon.de/en/?Trust_Center:Trusted_Locations
to set the Trusted Locations
I would guess there was some error in your function/sub "CheckAndOpen". are you able to debug the codes or show out the error description?
What does the macro look like?
ASKER CERTIFIED SOLUTION
Avatar of HKFuey
HKFuey
Flag of United Kingdom of Great Britain and Northern Ireland 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