i have a project with 4 forms. i want to go to various other forms from the current form. how can i do it?
thanks
i have a project with 4 forms. i want to go to various other forms from the current form. how can i do it?
thanks
Use code to set the Focus to a different Form using the Forms collection.
You could use the wizard to create an "Open Form" button for each of the forms.
Last edited by Bob Fitz; 07-09-2012 at 02:21 AM. Reason: typo
If this helped, please click the star at the bottom left of this posting and add to my reputation. Many thanks.
Bob Fitzpatrick
And here's the syntax for referring to forms: http://access.mvps.org/access/forms/frm0031.htm
Another way it could be done:
Instead of four buttons, have one combo box. Set it's Row Source Type property to: Value List.
Set it's Row Source property to: "NameOfForm1";"NameOfForm2";"NameOfForm3";"NameOfF orm4";
Replace "NameOfForm1" etc with the names of your forms.
Put the following line of code in it's After Update eventCode:DoCmd.OpenForm Me.ActiveControl
If this helped, please click the star at the bottom left of this posting and add to my reputation. Many thanks.
Bob Fitzpatrick