Wicklund
Registered User.
- Local time
- Today, 22:57
- Joined
- Jun 7, 2002
- Messages
- 56
On a Purchase Order, there may be some instances where it is revised, and some of the items can be cancelled. I am showing items are cancelled by adding an 'Item Cancelled' button for each item. When this button is {Active}, and an item is cancelled, I would like that item to stay on the PO, but have a line drawn through it.
I have accomplished this on the PO Report by using the following code in the [On Format] event.
If Me.Item_Cancelled = -1 Then
[Cancelled Line].Visible = True
Else
[Cancelled Line].Visible = False
End If
In the form however, the line is either visible for all records, or none of the records.
Is there a 'location' to put the code in the form, so the line will be visible for only records where the condition is met (The same as for the report?
Thank you,
I have accomplished this on the PO Report by using the following code in the [On Format] event.
If Me.Item_Cancelled = -1 Then
[Cancelled Line].Visible = True
Else
[Cancelled Line].Visible = False
End If
In the form however, the line is either visible for all records, or none of the records.
Is there a 'location' to put the code in the form, so the line will be visible for only records where the condition is met (The same as for the report?
Thank you,