Results 1 to 3 of 3
  1. #1
    Gnorro is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2009
    Posts
    2

    Executing Access macro

    Hi
    i execute an access macro from a batch file. I use this command:



    "C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE" file.mdb /x Import /nostartup

    The macro is executed correctly but i see always that access window starts, even if i use /nostartup command. How is possible?

    the second problem is about what happens when the macro gives an error.
    I would like that in every case msaccess process is killed. This macro is scheduled in windows task, so every morning when I open task manager, I see a lot of msaccess.exe processes.

    So i would like to know how to force the killing of access process when the work is ok but also when it's not ok. Now I use the "Quit" command inside macro. I see also a lot of other commands but i don't know which is better to use

    last thing: is it possible to wite the result of the macro executed by access in a log file? If not how can i know if the macro is ok or not?

    thanks

  2. #2
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    Alot depends on what the macro is doing. You may be better in converting the macro to vba and running the code. You have more error control.

  3. #3
    Gnorro is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2009
    Posts
    2
    i cant do that.
    i need to use the macro that way
    any other idea?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Macro To Import CSV to ACCESS
    By csvivek in forum Import/Export Data
    Replies: 1
    Last Post: 12-07-2009, 01:49 PM
  2. Access Macro
    By Gargen in forum Access
    Replies: 0
    Last Post: 09-14-2009, 09:13 AM
  3. Convert Excel Macro to Access Query
    By crownedzero in forum Queries
    Replies: 1
    Last Post: 06-22-2009, 02:13 PM
  4. Replies: 0
    Last Post: 05-07-2009, 02:32 PM
  5. How get path of executing database?
    By mscertified in forum Forms
    Replies: 3
    Last Post: 11-09-2005, 03:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums