I am working on a report that displays different things in [txtRecAction] based what is in various fields in the underlying query. I have this so far:
...But it is not working properly. I suspect it is just a syntax problem. It seems to only display the comments in [ActionComment], even though there are records in the underlying query that fit the other criteria.
[txtRecAction] is an unbound field in the detail area of the report.
[Action], [Date], [RRBText], and [ActionComment] all refer to fields in the underlying query in the record that is currently displayed in "detail".
Thanks for any help you can offer.
Code:
If Action Like "Enter New*" Then
Me.txtRecAction = Date
ElseIf Action Like "Terminate - Transfer*" Then
Me.txtRecAction = Trim([RRBText] & [ActionComment])
Else
Me.txtRecAction = ActionComment
End If
...But it is not working properly. I suspect it is just a syntax problem. It seems to only display the comments in [ActionComment], even though there are records in the underlying query that fit the other criteria.
[txtRecAction] is an unbound field in the detail area of the report.
[Action], [Date], [RRBText], and [ActionComment] all refer to fields in the underlying query in the record that is currently displayed in "detail".
Thanks for any help you can offer.