Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to handle form and subform by varity

Status
Not open for further replies.

wangling

MIS
Jun 18, 2001
7
0
0
TW
in my code
Forms![Similar_Form]![Similar_Sub_Form].Form![field
1].ControlSource = "ask-date"
How can I use varity As String to handle the Similar_Form?and Similar_Sub_Form in code?

thanks

 
Forms(varForm).Controls(varSubform).Form.Controls(varControl)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
like the following code
dim SubForm as Form

The Original Code is "Set SubForm = Form_Similar_Sub_Form"
I want to change the "Similar_Sub_Form" to a variety (ex."Set SubForm = Variety ").
How can I write this code ? Thanks a lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top