- Local time
- Today, 02:47
- Joined
- Feb 19, 2002
- Messages
- 47,209
You cannot reference a function in a different class module unless the form/report is actually open. If you want to use common code, put it in a standard module and define it as public and call it from multiple forms/reports. You can pass in a reference to the calling form so the code can reference form fields in the calling form by using frm.txtCustID. This of course requires that the names be consistent on all the forms that use this code. Just define the frm as below.
Public Sub MyProc( frm as Form)
Public Sub MyProc( frm as Form)