G
Guest
I have a form I have created (data source is a query) that is being used to
create a "checklist" form. So, I have these items in each row:
Item Risk Factor Complete Status
-------------- ------------ ----------- --------
ITEM 1 Data 1 Yes [blank]
ITEM 2 Data 5 No REQUIRED!
Risk factor is numeric field with values from 0 to 5
Complete is a yes/no box, which I actually have appearing as a checkbox.
Status is the calculated field I am trying to get working
The status field is the field I would like to calculate. If, for example,
the Risk Factor is 5, and the Complete field is NO, then I want the words
"REQUIRED" to appear under status. I will also add conditional formatting to
turn that value red if the status=Required (but I am ok with that).
What I cannot seem to do is get the words REQUIRED to appear. I have tried
a number of expressions (in the Control Source property of the Status Text
Box) to calculate the value, but the best I can get is a value = #NAME? to
appear. Not sure what that means. For example:
=iff ([qry RiskFactor1] = 5,"Required","Not Required")
Any idea...am I way off in the way I am trying to do this? I am pretty new
to Access when it comes to creating expressions (I have yet to find a good
resource for doing this).
Thanks!
Pat
create a "checklist" form. So, I have these items in each row:
Item Risk Factor Complete Status
-------------- ------------ ----------- --------
ITEM 1 Data 1 Yes [blank]
ITEM 2 Data 5 No REQUIRED!
Risk factor is numeric field with values from 0 to 5
Complete is a yes/no box, which I actually have appearing as a checkbox.
Status is the calculated field I am trying to get working
The status field is the field I would like to calculate. If, for example,
the Risk Factor is 5, and the Complete field is NO, then I want the words
"REQUIRED" to appear under status. I will also add conditional formatting to
turn that value red if the status=Required (but I am ok with that).
What I cannot seem to do is get the words REQUIRED to appear. I have tried
a number of expressions (in the Control Source property of the Status Text
Box) to calculate the value, but the best I can get is a value = #NAME? to
appear. Not sure what that means. For example:
=iff ([qry RiskFactor1] = 5,"Required","Not Required")
Any idea...am I way off in the way I am trying to do this? I am pretty new
to Access when it comes to creating expressions (I have yet to find a good
resource for doing this).
Thanks!
Pat