Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 46
  1. #31
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Wait a minute! Wait a minute!

    The is a combo box is there alright, but there is no way to select General from it. It is simply not there.

    Respectfully,



    Lou Reed

  2. #32
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    No problem.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #33
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    What are you trying to find? I thought the discussion was how to find a control on the form.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #34
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    If this is related to your finding orphaned code, General is at the top, not in alphabetical order.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #35
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I still do not see General as a selection.

    I am I have opened a form in design view, selected a control, and then let the combo box (drop down menu) open up. There is no General, what else must I do to get this to work.

    I am obviously missing something.

    Respectfully,


    Lou Reed

  6. #36
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    You didn't answer my question. If this is related to finding orphaned code, the dropdown you want is in the VBA editor, not the properties window.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #37
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Yes, it is and I am including a Snagit shot pdf file of the IDE.

    I take from what it says in the to check the right box for event declarations. If any are there they are orphaned code.

    Is that all there is to it? Just check event declarations and if any are there they are orpahed code. It seems that there should more.

    I am confused as to how to get to this IDE.

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed
    Attached Files Attached Files

  8. #38
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Okay, that system seems to work, but it only works on one form at a time. It select on my first attempt code that is not associated with a control. The code selected (which was presumably orphaned code) was called by VBA code that was associated with a control on a form.

    I guess that I am looking for really orphaned code. Something that is not associated in any way shape or form with the control on a form and that includes code that is called by other VBA code that is associated
    with a form control.

    What procedure does this?

    Any help appreciated. Thanks in advance.


    Respectfully,


    Lou Reed

  9. #39
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    It's the VBA editor, Alt-F11 from Access. Yes, it's that simple. With General selected to the left, any orphaned subs in that object will be in the right dropdown.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  10. #40
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Okay, but the orphaned code that it showed me is well not really orphaned. The orphaned code is called by another SUB that is not orphaned.

    Technically the code is orphaned. But really it is just connected to code that calls it and that code is certainly not orphaned.

    What about real orphaned code.

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed

  11. #41
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Paul -

    With General selected to the left, any orphaned subs in that object will be in the right dropdown.
    That needs some clarification. Orphaned subs that are event procedures will be in that right dropdown list, but so will user-written subs and functions that are not event procedures, even if they are referenced (called) by non-orphaned event procedures.

    John

  12. #42
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Okay, this link to a thread a few months ago,. Pbaldy wrote in POST # 9 a procedure that is much more universal in application. By that I mean it checks for orphaned code, but in the whole project not just

    code associated with a form. This seems much more utilitarian to use.

    How does this procedure work. Please elaborate.

    The link is below.

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed

    https://www.accessforums.net/showthr...light=orphaned

  13. #43
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I'm sure you're right John. It wasn't something I've used, just saw on another of Lou's threads.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  14. #44
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Quote Originally Posted by Lou_Reed View Post
    Okay, this link to a thread a few months ago,. Pbaldy wrote in POST # 9 a procedure that is much more universal in application. By that I mean it checks for orphaned code
    Post 9 was not about finding orphaned code, it was for finding an object on a form. Note the text I quoted there. It was meant for a situation where on a crowded form you aren't sure where "TextboxName" physically is. If you select it in that dropdown it will be selected on the form and thus easier to find.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  15. #45
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    What about real orphaned code.
    I don't know of any way that Access can do that automatically for you. A technique that I use to test whether a sub is orphaned or not is to change its name (for example just put an 'x' in front of the name), and then try a compile. If the sub is not orphaned, the compile will generate a "sub or function not defined error".

    This technique only works reliably for subs that are not event procedures, and it will lead to other compile errors if you test a function.

Page 3 of 4 FirstFirst 1234 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Restoring another form
    By LonghronJ in forum Modules
    Replies: 1
    Last Post: 07-17-2015, 10:43 AM
  2. Replies: 3
    Last Post: 10-16-2014, 08:49 AM
  3. Saving/Restoring Modified Datasheet Form
    By EddieN1 in forum Programming
    Replies: 1
    Last Post: 01-20-2012, 09:48 PM
  4. Restoring a lost field with a Unique Identifier
    By DBinazeski in forum Access
    Replies: 5
    Last Post: 12-20-2010, 08:02 AM
  5. Pound signs restoring tables
    By Djacsnp in forum Access
    Replies: 2
    Last Post: 04-20-2010, 05:42 AM

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