Call a form control's afterupdate event

  • Thread starter Thread starter Question Boy
  • Start date Start date
Q

Question Boy

I am having trouble getting the synthax right to call a form control's
afterupdate event.

I been trying to use

sForm = "frm_Invoicing"
Call Forms(sForm).Form.cbo_fltrbyInvId_AfterUpdate

but I can't get it to fire. How can I get the cbo_fltrbyInvId_AfterUpdate
event to trigger?

Thank you,

QB
 
As far as I know you would normally only call a form control's after_update
event from that form. If you have code in it that will be called from
somewhere else you should put that code in a standalone subroutine in a
public module. If for some reason you want to call an after_update event from
that form (other than after the control is updated) you would just use

Call myControl_AfterUpdate.

But typically you should only be concerned with the code in that event when
the control is updated. Like I said, if you have code that is being run there
other than at a time when the control is updated, that code belongs in it's
own sub.
 
I ended up getting, if anyone else ever has the issue the solution was

Forms(sForm).cbo_fltrbyInvNo_AfterUpdate

QB
 
Back
Top