Results 1 to 5 of 5
  1. #1
    gsd is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    3

    calling mdb from command line.

    Hi,



    I am trying to run the batch job from the command line. I created AutoExec macro in the mdb(msaccess 2007) which is calling someMainMethod() . How can I pass batch job id to the mdb?

    Thank you....

    Regards,

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,928
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    gsd is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    3

    Calling mdb from command line

    June 7,

    Thank you so much. This helped me a lot.

    But now I have one more issue. When I call the mdb file from command line as suggested by you, Access db is opened and stopped executing further.
    I have to click on "Stop All Macros" --> then I have to select "Enable this content" in security alert options.

    How can I get through these things?

    Thanks & Regards,
    Sri.








  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,928
    Do you already have Access set to allow macros to run without restriction? http://office.microsoft.com/en-us/of...001140307.aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    gsd is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    3

    calling mdb from command line.

    Wonderful!! Thanks for the help, June7...





    Quote Originally Posted by June7 View Post
    Do you already have Access set to allow macros to run without restriction? http://office.microsoft.com/en-us/of...001140307.aspx

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

Similar Threads

  1. Replies: 0
    Last Post: 04-02-2012, 11:30 AM
  2. query Access databases from the command line
    By xinelo in forum Programming
    Replies: 9
    Last Post: 11-09-2011, 09:08 AM
  3. Replies: 1
    Last Post: 09-26-2011, 03:33 PM
  4. VBA and command line
    By dsk96m in forum Access
    Replies: 1
    Last Post: 09-04-2011, 08:06 PM
  5. Pass command line parameters
    By lanto3000 in forum Access
    Replies: 2
    Last Post: 03-21-2010, 03:53 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