Hello,
I'm looking for a way to use the Forms!frmCISP.txtEnd.value callout in an automated way. For instance I have a form call another form and set a module level variable with the current control name.
Forms!frmCISP.ctlToSet.Value
This works but I would also like to use a variable in the place of the form name.
Forms!FormName.ctlToSet.Value
This produces an error "Can't find the form FormName".
I have tried to dimension the variable as a control, form, and userforms, and I still get the error.
Does anyone have any experience with this area?
Dugger
I'm looking for a way to use the Forms!frmCISP.txtEnd.value callout in an automated way. For instance I have a form call another form and set a module level variable with the current control name.
Forms!frmCISP.ctlToSet.Value
This works but I would also like to use a variable in the place of the form name.
Forms!FormName.ctlToSet.Value
This produces an error "Can't find the form FormName".
I have tried to dimension the variable as a control, form, and userforms, and I still get the error.
Does anyone have any experience with this area?
Dugger