Hi
I have a form split into pages, for a questionnaire. The questions are A1, A2, A3, B1,B2 etc.. and the A questions are on Page1, B on Page 2 etc.
All the questions derive from the same Table.
To answer the questions, I've used radio buttons which return a numerical value 1 to 5.
Now here's the problem
I want to make sure people answer all the questions on page 1 before being able to move to page 2.
Access being as it is, automatically sets each radio button to its lowest value.
What I want to do is set each question To Null on the Form Load event.
I've put this code behind the Click event of the button which moves you on to the next page
If A1.Value = Null Then
MsgBox "Please answer all the questions"
Exit Sub
Else
DoCmd.MoveToControl "Option104" (this is on second page)
End If
Now for some reason this just doesnt work, and stepping through, even though A1.Value does = Null, it skips straight to the Else.
I also need it to check A2 and A3.
Am I being really stupid here??
I have a form split into pages, for a questionnaire. The questions are A1, A2, A3, B1,B2 etc.. and the A questions are on Page1, B on Page 2 etc.
All the questions derive from the same Table.
To answer the questions, I've used radio buttons which return a numerical value 1 to 5.
Now here's the problem
I want to make sure people answer all the questions on page 1 before being able to move to page 2.
Access being as it is, automatically sets each radio button to its lowest value.
What I want to do is set each question To Null on the Form Load event.
I've put this code behind the Click event of the button which moves you on to the next page
If A1.Value = Null Then
MsgBox "Please answer all the questions"
Exit Sub
Else
DoCmd.MoveToControl "Option104" (this is on second page)
End If
Now for some reason this just doesnt work, and stepping through, even though A1.Value does = Null, it skips straight to the Else.
I also need it to check A2 and A3.
Am I being really stupid here??