Results 1 to 3 of 3
  1. #1
    Stefan Moser is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Location
    Bavaria / Germany
    Posts
    18

    Post Compile from Database

    Hi there,

    I want to use the Option within the VBA Window Debugger --> "Compile from Database"
    and for this I've two questions

    If this compilation worked do I still have the VBA script in the VBA editor which I could Edit ?

    And what do I have to do to compile old stuff with the following

    Dim rst As ADODB.Recordset
    Dim cnn As ADODB.Connection
    Dim cat As New ADOX.Catalog



    Thanks for your answer
    Last edited by June7; 03-04-2015 at 10:19 AM.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    The Debug compile does not impact the VBA code. It is just a check of code to make sure there are no errors that will prevent the code running (such as missing End If statements - a common compile error). You should run the Compile after code mods. Try it, see what happens. See if the compiler has any issue with the 'old stuff'.

    Also, run Compact & Repair after any design changes.
    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
    Stefan Moser is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Location
    Bavaria / Germany
    Posts
    18

    Smile Thanks ! that helps

    Thanks ! that helps


    Quote Originally Posted by June7 View Post
    The Debug compile does not impact the VBA code. It is just a check of code to make sure there are no errors that will prevent the code running (such as missing End If statements - a common compile error). You should run the Compile after code mods. Try it, see what happens. See if the compiler has any issue with the 'old stuff'.

    Also, run Compact & Repair after any design changes.

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

Similar Threads

  1. Debug/Compile Database
    By Steve1977 in forum Access
    Replies: 1
    Last Post: 03-20-2014, 07:41 AM
  2. Replies: 6
    Last Post: 07-23-2013, 09:30 AM
  3. When To Compile A Database
    By Aaron5714 in forum Access
    Replies: 2
    Last Post: 11-27-2012, 06:56 PM
  4. Automatically compile database
    By kevins in forum Programming
    Replies: 10
    Last Post: 08-28-2012, 07:24 AM
  5. compile error
    By darklite in forum Access
    Replies: 6
    Last Post: 08-31-2010, 04:27 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