I am creating form instances in code, using
which creates frm as a hidden form. However, I want to then display this form as a modal form and suspend code until it is hidden or closed. Just doing
doesn't work, despite
,
and
I can't use
since frm doesn't have a unique Name (it's an instance). What is the command to perform
without a form name? (The form instance frm does have a unique window handle - is there some function which utilises this to do the same thing as
?)
Please help!
Thanks
-Rob
Code:
Set frm = New Form_frmBase
Code:
frm.Visible = True
Code:
frm.Modal = True
Code:
frm.PopUp = True
Code:
frm.BorderStyle = dialog
I can't use
Code:
DoCmd.OpenForm xxx,,,,,acDialog
Code:
DoCmd.OpenForm
Code:
DoCmd.OpenForm
Please help!
Thanks
-Rob