Results 1 to 7 of 7
  1. #1
    Synergy.ron@gmail.com is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2020
    Location
    washington
    Posts
    126

    debug compiler 'grayed out....huh?

    apparently I don't understand what is going on... after fixing some syntax errs I try to compile but can not. sometimes i can 'break' then compile ; but not always.


    Attachment 45186 this does no seem to be documented and there are no youtube videos covering 'how to work with debug, just how to correct logic errors etc(are you listening

    steve bishop?thanks...

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,795
    Corruption is a possible cause. Try decompile and re-compile. https://www.fmsinc.com/MicrosoftAcce.../Decompile.asp
    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
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,946
    When the Debug...Compile database menu item is greyed out, it means that the application is already compiled.
    As soon as you make any changes to the code, the Compile menu item is activated again as the code is no longer fully compiled.
    Hope that makes sense.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  4. #4
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,381
    Access knows when it needs a compile. If it doesn't the compile is greyed out.
    Try this in immediate window:

    ?application.IsCompiled

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,795
    Good point. I thought just deleting and retyping a single character should make the Compile item available but apparently that is not the case.

    So what syntax errors were corrected?
    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.

  6. #6
    Synergy.ron@gmail.com is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2020
    Location
    washington
    Posts
    126
    Thanks for the reply. It makes sense and corrects my erroneous understanding.

  7. #7
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by Synergy.ron@gmail.com View Post
    .....this does no seem to be documented and there are no youtube videos covering 'how to work with debug, just how to correct logic errors etc(are you listening steve bishop?thanks...
    Maybe see Debugging VBA Code by Chip Pearson (www.cpearson.com)

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

Similar Threads

  1. Combo Box Grayed Out
    By Beanie_d83 in forum Forms
    Replies: 6
    Last Post: 05-10-2016, 10:01 AM
  2. Compiler ignoring the with/Do in a loop?
    By tonygg in forum Programming
    Replies: 1
    Last Post: 10-13-2015, 05:26 AM
  3. compiler error
    By Sheba in forum Forms
    Replies: 20
    Last Post: 10-03-2014, 12:41 PM
  4. Gridline icon is grayed out
    By Access_Novice in forum Reports
    Replies: 1
    Last Post: 09-18-2013, 06:56 PM
  5. Compiler WRONG example-DB
    By pacala_ba in forum Access
    Replies: 12
    Last Post: 04-18-2009, 01:00 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