Execute a form proceedure from another form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to execute the proceedure QuickFind_AfterUpdate from a command button
on another form. Both forms are loaded. The code I tried is:

Form_Inventory_Professional.QuickFind_AfterUpdate


Any ideas??
 
Sounds like a problem of scope. Generally, a procedure on one form cannot be
seen from another form. I would put the procedure in a module. You should
then be able to call it from anywhere.

Larry
 
JonMCrouch said:
I want to execute the proceedure QuickFind_AfterUpdate from a command button
on another form. Both forms are loaded. The code I tried is:

Form_Inventory_Professional.QuickFind_AfterUpdate


Before that can work, you have to make the AfterUpdate
procedure Public.

In addition, you should use a reference to the specific
instance of the form (instead of that default instqnce
reference).

Forms!Inventory_Professional.QuickFind_AfterUpdate
 
Back
Top