Macro To Open Form (1 Viewer)

pam_w_85

New member
Local time
Today, 21:50
Joined
Apr 8, 2005
Messages
5
Hello,

Can anyone advise on the code I would need to open a form when a certain value is entered into the combo box? For example if 1FULL is selected the payment form will automatically open,

Thanks

Pam
 

astarbyfar

Registered User.
Local time
Today, 21:50
Joined
Apr 27, 2003
Messages
93
This is quite tricky and my university lecturer took a whole month to explain this one so please bare with me. What you have to do is enter a new macro and go to View -> Conditions. You will know see that a new column has been added. You will now have to enter code similar to the example;

[Forms]![EPOS]![Size]="6"

This states that if the value 6 is entered in the field [Size] on the form [EPOS] then do the Action that is documented in the action column. In this case just do the usual Open form e.t.c. Hope thats pretty clear enough! I will post an example of the macro so you can see for yourself!
 

astarbyfar

Registered User.
Local time
Today, 21:50
Joined
Apr 27, 2003
Messages
93
Sorry

Sorry heres the macro
 

Attachments

  • Macro.zip
    6.7 KB · Views: 156

Users who are viewing this thread

Top Bottom