Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2010
    Posts
    2

    Programmatically create a ACCDE

    Hi,

    I am using Access 2007 and need to programmatically create a ACCDE file through VBA.

    Here is the flow:

    1. My accdb changes some internal settings for production
    2. My accdb file then copies itself to a TMP accdb file
    3. My orignal accdb file then attemps to compile the TMP accdb file to an accde file (this now fails).
    4. My orignal accdb file then deletes the TMP accdb file and copies the new accde file to the production server
    5. My orignal accdb then changes the internal settings back for development.




    Here is the code that fails:
    --------------------------------------------
    Dim appAccess As New Access.Application
    With appAccess
    appAccess.AutomationSecurity = 3 'MsoAutomationSecurityLow
    appAccess.SysCmd 603, sLocalPath & sStageName, sLocalPath _
    & gsNetName_Stage
    End With
    ---------------------------------------------

    This worked fine in Access 2003, but the 603 code does not work in 2007 - no error, no nothing except that no accde file is created.

    Any help is appreciated on how to programmatically make an accde file.


    Thanks,

    Scott

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    sr,

    check out the responses on the AWF forum

  3. #3
    Join Date
    Nov 2010
    Posts
    2

    Nothing there

    I could not find any responses to my question / issue there.


    As a matter of fact I have spend the greater part of two days looking for an answer with no luck.


    Thanks

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

Similar Threads

  1. Using a Labels Caption Programmatically
    By ksmith in forum Programming
    Replies: 2
    Last Post: 10-12-2010, 01:10 PM
  2. ACCDE Problem
    By smikkelsen in forum Access
    Replies: 1
    Last Post: 07-13-2010, 12:26 AM
  3. Convert to ACCDE through VBA
    By johnrt87 in forum Programming
    Replies: 0
    Last Post: 06-28-2010, 07:50 PM
  4. Cannot create ACCDE file
    By swilliams in forum Access
    Replies: 1
    Last Post: 06-03-2010, 03:41 PM
  5. Cannot make ACCDE
    By DanW in forum Database Design
    Replies: 1
    Last Post: 12-10-2009, 08:20 PM

Tags for this Thread

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