set value of object

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to see what frm is set to after this line:

Set frm = Me.Controls("frm" & strTab).Form

I am getting an "object not set" error but can't see what frm is set to
either from the locals window or using

MsgBox frm

How do I see what frm is set to?
Thanks!!
 
Hi,
if "frm" & strTab - is a subform, with form inside, and frm decared as
orm - then frm should get a reference to it. But you can't use:
MsgBox frm
use:
MsgBox frm.Name for example
 
thanks again, Alex. That did it.
--
sam


Alex Dybenko said:
Hi,
if "frm" & strTab - is a subform, with form inside, and frm decared as
orm - then frm should get a reference to it. But you can't use:
MsgBox frm
use:
MsgBox frm.Name for example
 
Back
Top