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
>
>
>"Ian" <(E-Mail Removed)> wrote in message
news:0a0c01c35034$bd2eaca0$(E-Mail Removed)...
>> 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???
>>
>>
>
>
>.
>
|