Hi,
I hope some of you can help me. first of all I'm a totally ACCESS newbie and not very familiar with vba codes, so it would be great where I have to put things.
My question is: I have an Access form and five options: option1, option2... etc. and a textfield called [Group].You can choose the answer for all options from yes/no.
Now if all options are no -- the group should be 1 if any of the answers is yes the group is 2.
How can I manage this using the if then else event of Access? What is the correct code and where do i have to put it?
I tried this one:
But it doesn't work. Thank you for your help.
I hope some of you can help me. first of all I'm a totally ACCESS newbie and not very familiar with vba codes, so it would be great where I have to put things.
My question is: I have an Access form and five options: option1, option2... etc. and a textfield called [Group].You can choose the answer for all options from yes/no.
Now if all options are no -- the group should be 1 if any of the answers is yes the group is 2.
How can I manage this using the if then else event of Access? What is the correct code and where do i have to put it?
I tried this one:
Code:
If Me.Option1 + Me.Option2 + Me.Option3 + Me.Option4 + Me.Option5 = 0 Then Me.Group = 1 Else Me.Group = 2 End If
Comment