I have a combobox on my form and the following vba code:
Private Sub GCR_Click()
'Puts the Gift Certificate Balance in the GC payment field when select the GC# [Named GCR] to redeem
If Me![GCR].Column(2) > AmtDue Then
Me!GC = [AmtDue]
Else
If Me![GCR].Column(2) < AmtDue Then
Me!GC = [GCR].Column(2)
End If
End Sub
The combo box displays three columns from a query: GC#[GCR]; GC Original Amt [Amt] and Balance. Bound by Column = 1
What I want to happen is: If the Amount Due is greater than the current balance of the Gift Certificate I want the Gift Certificate Payment field to be the balance of the gift certificate. Right now it is always making it equal to the Amount Due??? So if the Amount due is $10.00 but the gift certificate balance is only $5.00 I only want $5.00 to go in the GC (payment) field and the user will have to collect more money (no problem with that). What am I doing wrong?