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

    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.


    Click image for larger version. 

Name:	compile error.png 
Views:	27 
Size:	18.5 KB 
ID:	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
    50,076
    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 Very idle programmer
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    4,806
    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 (Mendip Data Systems): Website, email
    Try again. Fail again. Fail better.
    A
    sking for help isn't giving up. Its refusing to give up.

  4. #4
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    2,728
    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
    50,076
    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 Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Oct 2020
    Location
    washington
    Posts
    50
    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,340
    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)
    HTH
    -----
    Steve
    --------------------------------
    "Veni, Vidi, Velcro"
    (I came; I saw; I stuck around.)

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 - Senior Forums