I have a continuous form fed by a simple query. One of the pieces of data displayed is a currency freeShippingLimit. I'd like to have the control bound to the freeShippingLimit field display a value of "Free Freight" when freeShippingLimit = 0.
Currently this is the only way I can think of to do this.
this however results in the Terms field of every displayed record holding the value of the last processed record and not the proper value. Does anyone know how to fix that issue? Or better yet can someone suggest a more elegant solution to my problem?
Currently this is the only way I can think of to do this.
Code:
Private Sub Form_Load()
For i = 1 To Me.Recordset.RecordCount
Me.Terms = convertCurToText(Me.Recordset!freeShippingLimit)
Me.Recordset.MoveNext
Next i
End Sub
*convertCurToText returns a string with either the value of the shipping limit or the "Free Freight" string as required
this however results in the Terms field of every displayed record holding the value of the last processed record and not the proper value. Does anyone know how to fix that issue? Or better yet can someone suggest a more elegant solution to my problem?