I have a text box called "Approved" on frmPARQ that I am trying to write an event for and am having trouble.
I've created a db to allow users to enter and store information off of paper forms. There are 10 check boxes on frmPARQ that are yes/no questions. There is also a check box called "Signed" that when checked states that the applicant signed the form.
If the applicant answers Yes to any of the 10 questions, they must have physicians consent to participate, otherwise, they are approved. I've set up an option group of 3 choices, option 3 being that the applicant was given full consent to participate.
To be approved, the applicant must sign the form, and have answered no to all 10. Or, have signed the form, and gotten physicians consent.
Here's what I'm wanting to happen, in pseudo code:
I don't know how to write VB. I also need the "yes" or "no" value stored in tblPARQ. Help?
I've created a db to allow users to enter and store information off of paper forms. There are 10 check boxes on frmPARQ that are yes/no questions. There is also a check box called "Signed" that when checked states that the applicant signed the form.
If the applicant answers Yes to any of the 10 questions, they must have physicians consent to participate, otherwise, they are approved. I've set up an option group of 3 choices, option 3 being that the applicant was given full consent to participate.
To be approved, the applicant must sign the form, and have answered no to all 10. Or, have signed the form, and gotten physicians consent.
Here's what I'm wanting to happen, in pseudo code:
Code:
If [tblPARQ].[signed]=-1
AND [tblQuestions].[Q1]=0
AND [tblQuestions].[Q2]=0
AND [tblQuestions].[Q3]=0
AND [tblQuestions].[Q4]=0
AND [tblQuestions].[Q5]=0
AND [tblQuestions].[Q6]=0
AND [tblQuestions].[Q7]=0
AND [tblQuestions].[Q8]=0
AND [tblQuestions].[Q9]=0
AND [tblQuestions].[Q10]=0
Then [tblPARQ].[Approved]="Yes"
Else If [tblPARQ].[signed]=-1
AND [tblPhysicianConsent].[ParticipationOption]=3
Then [tblPARQ].[Approved]="Yes"
Else [tblPARQ].[Approved]="No"
End If
I don't know how to write VB. I also need the "yes" or "no" value stored in tblPARQ. Help?
