I have a form with a button that, when clicked and depending on a separate value, will launch one of two possible forms.
Indeed, I can access no properties of frm. Even ?frm.name gives an error. Both frmEdit and frmDelete are valid forms.
Any idea if this is possible?
Code:
dim frm as UserForm
'later
If theValue = "edit" then
Set frm = frmEdit
ElseIf theValue = "delete" then
Set frm = frmDelete
End If
frm.Show 'Run time error 438: Object doesn't support this property or method
Indeed, I can access no properties of frm. Even ?frm.name gives an error. Both frmEdit and frmDelete are valid forms.
Any idea if this is possible?
Last edited: