[AccessD] amending code for variable form name - Syntax help

Kath Pelletti kp at sdsonline.net
Mon Jul 14 23:57:56 CDT 2008


Need some syntax help.

I need to set a form's visible property to true. It works if I explicity use the form name, eg. 

Forms!frmPersonDetails.Form.Visible = True

But where I use a variable eg:

    Forms!frmCallingForm.Form.Visible = True

it doesn;t. How do I amend the code to include the variable frmcallingform? The code which creates and sets the variable form name is shown below:

Dim frmCallingForm  As Form
Set frmCallingForm = Forms("frmPersonDetails")


______________________________________
Kath Pelletti
Software Design and Solutions Pty Ltd
Ph: 9505-6714
Fax: 9505-6430
kp at sdsonline.net


More information about the AccessD mailing list