• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 421
  • Last Modified:

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
0
Richard Korts
Asked:
Richard Korts
  • 2
  • 2
1 Solution
 
Rey Obrero (Capricorn1)Commented:
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
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
First ... on the File menu at the top of Access:

File>>SaveAs
Enter your new name.

Now make the changes ... the File>>Save

done.
0
 
Richard KortsAuthor Commented:
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.
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
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.
0
 
Richard KortsAuthor Commented:
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!
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now