Passing (sub, sub) Form as Object

dynamictiger

Registered User.
Local time
Today, 14:04
Joined
Feb 3, 2002
Messages
270
I have an application where I need to pass the form object to a sub. It works great if I hard type the form, and if I pass in a simple form, however, when I pass in a sub sub form it returns object not found error. The code looks like this

strForm="frmClient"

else

strForm="frmClient!ClientSuburb.Form!tblClientResults.Form"

End if

Set Form=Forms(strForm)

Although not critical here, it is critical later in the application as I need to move this section of code to a module once working properly.

Anyone aware of a restriction on this?
 

Users who are viewing this thread

Back
Top Bottom