G
Guest
I have a report detail that has nothing but a textbox and a few non-visible
textboxes. In the Format Detail section I have this code:
If Me.Phase <> Me.OldPhase Then sMessage = Me.CompanyName & " " &
Me.BrandName & " moved from " & Me.OldPhase & " to " & Me.Phase
If sMessage <> "" Then
Me.txtMessage = sMessage
Else
Me.txtMessage = ""
End If
What I am trying to do is only print something if the old and new phase is
different. Otherwise I want the report to look as though there was no record
and move on to the next row of data. Currently it leaves blank spaces in
those rows of the detail like this:
Company A moved from $0 to $200
Company B moved from $100 to $500
Company H moved from $150 to $400
Company D moved from $150 to $400
I'm trying for this:
Company A moved from $0 to $200
Company B moved from $100 to $500
Company H moved from $150 to $400
Company D moved from $150 to $400
textboxes. In the Format Detail section I have this code:
If Me.Phase <> Me.OldPhase Then sMessage = Me.CompanyName & " " &
Me.BrandName & " moved from " & Me.OldPhase & " to " & Me.Phase
If sMessage <> "" Then
Me.txtMessage = sMessage
Else
Me.txtMessage = ""
End If
What I am trying to do is only print something if the old and new phase is
different. Otherwise I want the report to look as though there was no record
and move on to the next row of data. Currently it leaves blank spaces in
those rows of the detail like this:
Company A moved from $0 to $200
Company B moved from $100 to $500
Company H moved from $150 to $400
Company D moved from $150 to $400
I'm trying for this:
Company A moved from $0 to $200
Company B moved from $100 to $500
Company H moved from $150 to $400
Company D moved from $150 to $400