how do you convert a string form name to a "form" variable

  • Thread starter Thread starter Dennis
  • Start date Start date
D

Dennis

Hi,

All,

I have a form named "frmXYZ" and I want to pass the form to a routine like

Sub SetAutoValues(frm As Form)

My question is, how do I convert to the string form name of "frmXYZ" to
variable that has a Form type so I can pass it to SubAutoValues?

Dennis
 
Dennis said:
Hi,

All,

I have a form named "frmXYZ" and I want to pass the form to a routine like

Sub SetAutoValues(frm As Form)

My question is, how do I convert to the string form name of "frmXYZ" to
variable that has a Form type so I can pass it to SubAutoValues?

Dennis

Forms("frmXYZ")
 
Back
Top