Simple Macro question....I think....

M

Mary B.

I need to do 2 things in my database that I am not sure
how to do.

1. If 'x' is selected in my drop down menu, open
form '2' If 'x' is not selected then do nothing.

2. When condition 1 (above) above is true, after opening
form '2' copy field 1 in form '1' to field 5 in form '2'

any advice... I haven't had a lot of success finding the
answer to this question.

Thanks tremendously.

Mary
 
K

Ken Snell

Use the AfterUpdate event of the combo box to run this macro:

macComboBox

Condition: Forms!Form1!cboBoxName.Value = 'x'
Action: OpenForm
Form Name: Form2

Condition: . . .
Action: SetValue
Control Name: Forms!Form2!Field5
Expression: Forms!Form1!Field1
 
M

Mary Bell

Thank you so much!

-----Original Message-----
Use the AfterUpdate event of the combo box to run this macro:

macComboBox

Condition: Forms!Form1!cboBoxName.Value = 'x'
Action: OpenForm
Form Name: Form2

Condition: . . .
Action: SetValue
Control Name: Forms!Form2!Field5
Expression: Forms!Form1!Field1



--
Ken Snell
<MS ACCESS MVP>




.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top