Link to home
Start Free TrialLog in
Avatar of Richard Korts
Richard KortsFlag for United States of America

asked on

MS Access Marco

Hi,

See attached. I used to know how to do this, but it's been years..........

I want to take the marco opened in design view (LSS_EXTR_Cust-actv), add some fields from the same table & do a "save as" with a different macro name.

I DO NOT want to modify the existing macro.

How do I do that?

I'm not sure of the Access version (it looks old).

Thanks
AccessMacro.jpg
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

for your information, what you want to alter is a query.
to create a copy of the query, select the query and do a right click , select copy then paste
give the query a new name.

now, open the new query in design view and add the fields then save
ASKER CERTIFIED SOLUTION
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America 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
Avatar of Richard Korts

ASKER

Great, thanks.

How can I tell if this macro (or ANY Macro) is an "Autoexec" macro.?

I will need to make the new one the Autoexec macro (eventually) and of course turn off the old (current) one.
If it's a real auto exec macro ... it will actually have the name:

AutoExec


no more, no less :-)

Access looks for that exact name when loading, and if found - executes whatever commands are in that macro.
I see how they did it; there is no AutoExec macro, they open the database by executing a .bat file that has this line:

"C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "C:\C_LSS\DB\Linked_to_LSS.mdb"  /x "LSS_MACR_Mo-1"

"LSS_MACR_Mo-1" is a macro that executes a query that does what I need.

Thanks!