Error 2455 in the On Current event procedure when referencing control in subform

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cornishgamehen
    New Member
    • Nov 2010
    • 1

    #1

    Error 2455 in the On Current event procedure when referencing control in subform

    Hi,

    I seem to have discovered a bug/problematic feature in Access 2002.

    When navigating through records in a form, if a control in one of the subforms has the focus, and that subform becomes disabled through disabling of the tab page, then ALL subforms (not just the disabled one) become unavailable to reference in VB (at least in the On Current event). Attempting to reference one will cause a 2455 error.

    Note that disabling the subform directly does not cause this problem.

    Is this a known issue? Is there more to this that I should know about (e.g. what are the root causes, are there any bad practices I may be perpetrating, etc.)?

    Thanks!
  • MMcCarthy
    Recognized Expert MVP
    • Aug 2006
    • 14387

    #2
    What code are you using to disable the tab page? It would probably help if you attached a database with the relevant form and subforms along with accompanying tables and/or queries.

    Comment

    Working...