J
John D. Peterson
I'm trying to develop a scoring system by examining
checkboxes on a dislayed form but the syntax is eluding
me. I've tried vatiations of the following in Default
Value for [Score] using Expression Builder to no avail:
(IF [PBS] = "Yes" THEN 20 ELSE 0) + (IF [BT] = "Yes" THEN
10 ELSE 0) + (IF [MS] = "Yes" THEN 10 ELSE 0)
Where [PBS], [BT] and [MS] are Yes/No Checkboxes and the
expression is in the numeric field [Score]. If all three
checkboxes on the form are checked by the user, the Score
field should reflect a total of 40 and if only [PBS] is
checked the total should be 20.
Also do I need or should I have an event trigger of some
sort (i.e. [PBS].OnGotFocus) reflected in the expression
to cause the score to update as checkboxes are
manipulated by the user?
checkboxes on a dislayed form but the syntax is eluding
me. I've tried vatiations of the following in Default
Value for [Score] using Expression Builder to no avail:
(IF [PBS] = "Yes" THEN 20 ELSE 0) + (IF [BT] = "Yes" THEN
10 ELSE 0) + (IF [MS] = "Yes" THEN 10 ELSE 0)
Where [PBS], [BT] and [MS] are Yes/No Checkboxes and the
expression is in the numeric field [Score]. If all three
checkboxes on the form are checked by the user, the Score
field should reflect a total of 40 and if only [PBS] is
checked the total should be 20.
Also do I need or should I have an event trigger of some
sort (i.e. [PBS].OnGotFocus) reflected in the expression
to cause the score to update as checkboxes are
manipulated by the user?