G
Gina Whipp
Hello All,
I want to populate a txtPackaging with one value if true and another value
if false what I am getting is only the value as if the statement is always
true and I know for a fact that it is not.
Look at tblCustomerPricing if cpFlatRate =-1 and the second If statement is
true then show me the price or else show me nothing.
If (DLookup("cpFlateRate", "tblCustomerPricing", "cpCustomerID=" &
Forms![frmOrder]![cboCustomerID])) <> -1 Then
If Not IsNull([txtPackagingCodeID]) Or Not IsNull([txtLength]) Or
Not IsNull([txtCoilListWidth]) Or Not IsNull([txtWeight]) Then
Me.txtPackaging = TotExtras([txtPackagingCodeID], [txtLength],
[txtCoilListWidth], [txtWeight])
Else
Me.txtPackaging = ""
End If
End If
Thanks in advance!!!!
I want to populate a txtPackaging with one value if true and another value
if false what I am getting is only the value as if the statement is always
true and I know for a fact that it is not.
Look at tblCustomerPricing if cpFlatRate =-1 and the second If statement is
true then show me the price or else show me nothing.
If (DLookup("cpFlateRate", "tblCustomerPricing", "cpCustomerID=" &
Forms![frmOrder]![cboCustomerID])) <> -1 Then
If Not IsNull([txtPackagingCodeID]) Or Not IsNull([txtLength]) Or
Not IsNull([txtCoilListWidth]) Or Not IsNull([txtWeight]) Then
Me.txtPackaging = TotExtras([txtPackagingCodeID], [txtLength],
[txtCoilListWidth], [txtWeight])
Else
Me.txtPackaging = ""
End If
End If
Thanks in advance!!!!