reference subroutine from another form

M

Michael S. Montoya

I need to have a form's routine run from another form...here is an example:

frmContacts is loaded. The user double-clicks cboCompanyID to open
frmCompany
frmCompany displays other contacts for that same company in a listbox. If
the user double-clicks a contact in the listbox I would like frmCompany to
close and frmContacts (which is not filtered) to jump to the contactID that
was selected from frmCompany.

Is this possible? I have a "QuickJump" combobox on frmContacts that does a
DAO FindFirst. I was thinking I could call the AfterUpdate sub on the
frmCompany!lstbox doubleclick, but how do I reference an event sub on
another
form?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top