Solved Error 2455 sub control (1 Viewer)

ClaraBarton

Registered User.
Local time
Today, 06:00
Joined
Oct 14, 2019
Messages
463
I was here yesterday and got a lot help form MajP. I've worked on the attached database and still need a little more.;) Click on a record in the first list to show the problem.
  • The form with issues is the only form on the menu... List Maintenance.
  • I get and Error 2455 whenever I click on an item in the list.
  • The problem sub is called FixDetail.
  • I'm trying to hide the Clear buttons (pink) if the field in the detail sub is not the list field.
  • The problem clear buttons are on the Author sub and the Subject sub.
  • All the field buttons work properly if I comment out the Author and Subject buttons.
 

Attachments

  • SampleLibrary.accdb
    5 MB · Views: 59

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 21:00
Joined
May 7, 2009
Messages
19,245
see if it is fixed here.
 

Attachments

  • SampleLibrary.accdb
    6 MB · Views: 65

ClaraBarton

Registered User.
Local time
Today, 06:00
Joined
Oct 14, 2019
Messages
463
Oh, sorry. I didn't see the timer. What calls the timer?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 21:00
Joined
May 7, 2009
Messages
19,245
Oh, sorry. I didn't see the timer. What calls the timer?
on the first subform's current event.
i had to use the Timer because the "inner" subform (on second subform of main form),
is still "rebuilding" it's controls when you call Fixdetail.
therefore controls on the inner subform are not yet available so we
cannot hide them.

timer is the "last" event in the form/subform, therefore all controls
are available when the timer events is run.
 

ClaraBarton

Registered User.
Local time
Today, 06:00
Joined
Oct 14, 2019
Messages
463
Aargh! the timer interval errors and never calls the form timer. What am I missing?
 
Last edited:

ClaraBarton

Registered User.
Local time
Today, 06:00
Joined
Oct 14, 2019
Messages
463
OK!!! the sub wasn't connected under the event on timer. I fixed that and the whole thing works like a charm! Took a long time to figure out but definetly worth it! Thank you so much!
 

Users who are viewing this thread

Top Bottom