Results 1 to 4 of 4
  1. #1
    cherold is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    82

    A subform is broken until I do something that shouldn't fix it

    This is really, really weird. The tl;dr version is, I have a subform that won't work properly until I go into design view and open up a function from the s
    Last edited by cherold; 01-11-2018 at 09:13 AM.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I would start by *importing* your db into a fresh new db and see if the problem follows.

  3. #3
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    I would get the error message, "Object or class does not support the set of events."
    Are you compiling your code each time you make changes to it? If not, make it a habit to always do so. That will detect many errors you didn't know were there.

    When you get that error, do you click "Debug" to see the line of code that is causing the problem? It's very difficult for us to help unless we have more information.

    It's also weird that Access wants me to save the form even though I haven't made any changes.
    But you did make a change - you set or removed a breakpoint in the code.

  4. #4
    cherold is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    82
    1) I haven't made any changes to the VBA code, the changes were only in the SQL for the subform.
    2) The debug button does not appear on this particular error screen.
    3) I find even if I don't set the breakpoint, just opening the VBA module from form design mode fixes the problem. If I go into design mode, open VBA, close VBA, and close design mode, then I have not made any change in the form. So why does Access ask if I want to save the form? What does it think is being changed?

    Quote Originally Posted by John_G View Post
    Are you compiling your code each time you make changes to it? If not, make it a habit to always do so. That will detect many errors you didn't know were there.

    When you get that error, do you click "Debug" to see the line of code that is causing the problem? It's very difficult for us to help unless we have more information.



    But you did make a change - you set or removed a breakpoint in the code.

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

Similar Threads

  1. Replies: 5
    Last Post: 10-20-2014, 10:32 AM
  2. Broken wheel-scroll in a subform
    By Jamesiv1 in forum Access
    Replies: 3
    Last Post: 04-28-2014, 09:04 AM
  3. Replies: 1
    Last Post: 08-28-2013, 06:49 AM
  4. Error 3101 (but it shouldn't?..)
    By opopanax666 in forum Programming
    Replies: 4
    Last Post: 12-09-2010, 09:07 AM
  5. Replies: 0
    Last Post: 04-26-2008, 09:59 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