I have a Sales Form, which can be opened from a Sales History form without issue. However, as Sales can also include sales of subscriptions, I also have a Subscriptions History form that allows the originating Sale form record to be opened - at least that was the intention. Using an almost identical approach, the above error message occurs with the Form_Current of the Sale Form, only when opening the form from Subscriptions History.
Both History forms pass the value of the OrderID(SaleID) and an OpenArg: one openArg is used to indicate if a new sale record is requested. It is "0" whenever a subscription history record is used to retrieve a Sales record.
The issue occurs with the control: Me.TxStatusID ... the txStatus is an optional FK used to determine if the record is a cancelled transaction (the sales order may be a lapsed quote for eg.), which is then used to set what controls are enabled on the Sale form.
The offending line is : If Me.TxStatusID = 0 Or (IsNull(Me.TxStatusID)) Or Me.TxStatusID = "" Then
When opening the Sale form from Subscription History, after accepting the error message, the form does not display any content.
Any suggestions as to what is the cause and how to work around it?
Both History forms pass the value of the OrderID(SaleID) and an OpenArg: one openArg is used to indicate if a new sale record is requested. It is "0" whenever a subscription history record is used to retrieve a Sales record.
The issue occurs with the control: Me.TxStatusID ... the txStatus is an optional FK used to determine if the record is a cancelled transaction (the sales order may be a lapsed quote for eg.), which is then used to set what controls are enabled on the Sale form.
The offending line is : If Me.TxStatusID = 0 Or (IsNull(Me.TxStatusID)) Or Me.TxStatusID = "" Then
When opening the Sale form from Subscription History, after accepting the error message, the form does not display any content.
Any suggestions as to what is the cause and how to work around it?