B
Byron
I would suggest that you might want to consider writing
your own function that would evaluate all of the options
and return the appropriate value instead of trying to use
the Switch function. It sounds like you have multiple
evaluations that need to happen. You might try using a
Case statement in your function.
HTH
Byron
some help.
Month],"Rescheduled",[Date Written Report Sent] Is Not
Null,"Completed",Not IsNull([Date Written Report
Sent]),"Completed",True,"Pending")
completed. A person can check a box "Waive", they can
check a box "Cancel" or they can enter a date for a
field "Rescheduled". If a field "Date Written Report
Sent is filled out, then it is considered "Completed".
The person can either check "Cancel" or Waive" and that
might end the item. Entering a date in "Rescheduled"
field leaves it open still for all possibilities.
Filling out the date field "Date Written Report Sent"
ends the item as well.
rescheduled but if they later filled out the Date Written
Report Sent the field still shows Rescheduled and not
Completed as it should.
than it wil still say Waived or Canceled.
trail in the report so multiple choices need to be
accounted for. I just need to write the correct
arguments.
your own function that would evaluate all of the options
and return the appropriate value instead of trying to use
the Switch function. It sounds like you have multiple
evaluations that need to happen. You might try using a
Case statement in your function.
HTH
Byron
is close to working properly but not quite and I need-----Original Message-----
I have the following as a text box control source which
some help.
Call],"Canceled",[Rescheduled Service=Switch([Waive Service Call],"Waived",[Cancel Service
Month],"Rescheduled",[Date Written Report Sent] Is Not
Null,"Completed",Not IsNull([Date Written Report
Sent]),"Completed",True,"Pending")
considered "Pending" until some entry on a form isI have a database where all items are
completed. A person can check a box "Waive", they can
check a box "Cancel" or they can enter a date for a
field "Rescheduled". If a field "Date Written Report
Sent is filled out, then it is considered "Completed".
The person can either check "Cancel" or Waive" and that
might end the item. Entering a date in "Rescheduled"
field leaves it open still for all possibilities.
Filling out the date field "Date Written Report Sent"
ends the item as well.
Rescheduled Date out the report correctly showsI noticed issues where if a person filled the
rescheduled but if they later filled out the Date Written
Report Sent the field still shows Rescheduled and not
Completed as it should.
some reason filled out Date Written Report Sent laterI also noticed that if you waive or cancel and then for
than it wil still say Waived or Canceled.
possibilities? Do I need multiple if statements?How do I improve the switch to account for those
choices then work but we need to be able to show theIf I clear the first choice out of the form the other
trail in the report so multiple choices need to be
accounted for. I just need to write the correct
arguments.