D
Dave
Access 2007
Three combo boxes with drop downs that have 2 choices
Yes
No
If all 3 are no I want to take the user to a different location on the form.
I am having trouble with an "AND" If function
This is my current code
Private Sub Q5c_AfterUpdate()
If Q5a.Value = "NO" And
If Q5b.Value = "NO" And
If Q5c.Value = "NO" And
Forms!frmStudy_page3.pgeIneligible.SetFocus
Reason.Value = "Can Not get Pregnant"
End If
Q5a and Q5b and Q5c are all fields on this form
What am I doing wrong in the If FUnction?
Thanks
dave
Three combo boxes with drop downs that have 2 choices
Yes
No
If all 3 are no I want to take the user to a different location on the form.
I am having trouble with an "AND" If function
This is my current code
Private Sub Q5c_AfterUpdate()
If Q5a.Value = "NO" And
If Q5b.Value = "NO" And
If Q5c.Value = "NO" And
Forms!frmStudy_page3.pgeIneligible.SetFocus
Reason.Value = "Can Not get Pregnant"
End If
Q5a and Q5b and Q5c are all fields on this form
What am I doing wrong in the If FUnction?
Thanks
dave