has parent

  • Thread starter Thread starter mcnews
  • Start date Start date
M

mcnews

how can i tell if a form has a parent or not.
i use a form as a subform and as a dialog that opens form a button
click.
i don't need to be told how to design my form.
i need to know how to find out if the form has a parent or not.
isnull(me.parent) doesn't do it.

thanks,
mcnewxp
 
You can refer to its Parent property and trap the error 2452 that'll be
raised if it isn't being used as a subform.
 
You can refer to its Parent property and trap the error 2452 that'll be
raised if it isn't being used as a subform.

that's it, huh.
that's what i did, but thought might be something a little more
elegant.
thanks.
 

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

Back
Top