Christine Pearc
Christine
- Local time
- Today, 22:33
- Joined
- May 13, 2004
- Messages
- 111
I have a subform, set to Continuous Forms, that presents information from a query in columns:
Job Number Current Status
There is a hidden field from the qry/Table called “Status”. I would like the output for Current Status (an unbound field) to vary depending on the value of Status, using a Select Case statement. I've decided on Select Case to get the value for Current Status because the variety of options seems far too complicated to put into an IIF expression.
The Select Case statement looks something like this:
Select Case Status
Case “Assigned”
Me.ExpStatus = "Assigned on " & [DispositionDate]
Case "Complete"
Me.ExpStatus = "Completed on " & [CompleteDate]
Case "Verified"
Me.ExpStatus = "Verified on " & [VerifiedDate]
Etc........
End Select
I can’t seem to find the correct place to put the Select Case statement. Could someone advise?
Thank you,
Christine
Job Number Current Status
There is a hidden field from the qry/Table called “Status”. I would like the output for Current Status (an unbound field) to vary depending on the value of Status, using a Select Case statement. I've decided on Select Case to get the value for Current Status because the variety of options seems far too complicated to put into an IIF expression.
The Select Case statement looks something like this:
Select Case Status
Case “Assigned”
Me.ExpStatus = "Assigned on " & [DispositionDate]
Case "Complete"
Me.ExpStatus = "Completed on " & [CompleteDate]
Case "Verified"
Me.ExpStatus = "Verified on " & [VerifiedDate]
Etc........
End Select
I can’t seem to find the correct place to put the Select Case statement. Could someone advise?
Thank you,
Christine