Opening Forms

I

Ian

Hi,

I have a problem. I need to open a form, edit some
properities and save, close it in code. I successfully
open the form using "docmd.openform <frmNameAsString>"
however I need the object in order to execute the
following command "form_frmName.form.property = true".
Sure I could hardcode the form names but I want to make
this a generic function. Any ideas???
 
I

Ian

you are a LEGEND!! it works, ta muchly
-----Original Message-----
Hi,
You can refer to an open form like this:
Forms(frmNameAsString)

--
HTH
Dan Artuso, Access MVP





.
 

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