referencing form objects from a code library

D

dp

Hi Guys,

I am trying to objectify my project and put things into an external MDE as a
library.

I am having problems executing procedures that contain references to forms
in the main project.

Public Sub RefreshTransFinder()

If CurrentProject.AllForms("TransactionFinder").IsLoaded = True Then _
Forms("TransactionByDate").Requery ** <- error herr

Throws an error when I put it into my external library that the form cannot
be found.

I guess I am trying to find an object like Currentproject that I can pass
from the main library to external procedures that will allow me to reference
forms, report objects.

Thanks for any suggestions
 
Top