Solved

MS Access Marco

Posted on 2014-02-21
5
403 Views
Last Modified: 2014-02-21
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
Comment
Question by:Richard Korts
  • 2
  • 2
5 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 39877894
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
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
ID: 39877896
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
 

Author Comment

by:Richard Korts
ID: 39878185
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
 
LVL 75
ID: 39878191
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
 

Author Closing Comment

by:Richard Korts
ID: 39878252
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now