It is not clear what you are trying to do. But if you want to set the
name of a subform to a variable when you enter that subform - just do
this: Create a module level variable in the main form
-----------------------------------------
Dim subFrmName As String
Private Sub Form3_Enter()
subFrmName = Form3
End Sub
==========================================
or if you want to pass the actual subform to a function when you enter
the subform, do this:
==========================================
Private Sub Form3_Enter()
Me.Form3!Text0 = "testingjhgkjhg"
End Sub
------------------------------------------
where Text0 is a textbox in Form3. What does MyFunction do? What kind
of data does it return?
Rich
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!