Microsoft Access 2007 tutorial: Docmd.OpenForm |
||||||||||||||
Docmd.OpenFormVI. Docmd.OpenFormIt is used to open a form from another form. You can use this method to open a form in Design View, Layout View, Form View, DataSheet View, PivotTable, PivotChart or other view types.Ex: I have a form as the figure below:
Through the form above expresses that the employee that has ID equal to 004(Emp004) is the one who issued the invoice(Inv002). If you want to know about the information of the employee, you have to click View Employee Info button on the form. After you click this button, it will display a form like the following figure:
You have to type code on View Employee Info Button. And this button you have to rename its name as CmdView and type the code below:
|
||||||||||||||
|
||||||||||||||