Multiple Instances of a Form

D

Dave Ruhl

In Access 2002 is it possible to open multiple instances
of the same form ? Thanks.
 
D

Dave Ruhl

Thanks Jeff! I was able to open additional instances of
the form. Now I just need to play around with it a bit
to get it to work the way I want. Thanks again...

Dave
 
D

Douglas J. Steele

Once you've instantiated the new instance of the form, using

Set frmX = New Form_Customers

you should be able to set a filter to it using something like

frmX.Filter = "Customer_Id = 1234"
frmX.FilterOn = True
frmX.setfocus

If Customer_Id is text, you need to include quotes:

frmX.Filter = "Customer_Id = '1234'"

Assuming you're going to use a variable, it'll be

frmX.Filter = "Customer_Id = " & lngCustomer

or

frmX.Filter = "Customer_Id = " & Chr$(34) & strCustomer & Chr$(34)
 
W

Wael Fattouh

Thank you very much. That worked perfect. =)

Douglas J. Steele said:
Once you've instantiated the new instance of the form, using

Set frmX = New Form_Customers

you should be able to set a filter to it using something like

frmX.Filter = "Customer_Id = 1234"
frmX.FilterOn = True
frmX.setfocus

If Customer_Id is text, you need to include quotes:

frmX.Filter = "Customer_Id = '1234'"

Assuming you're going to use a variable, it'll be

frmX.Filter = "Customer_Id = " & lngCustomer

or

frmX.Filter = "Customer_Id = " & Chr$(34) & strCustomer & Chr$(34)
 
Top