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

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
 
S

Stuart McCall

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")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top