G
Gina Whipp
Hello Anyone?
Why doesn't Example A work but Example B work?
Example A
If Me.txtLength > 0 And Me.txtCoilListGauge > 0 And Not
IsNull(TPID(Forms![frmOrder]![cboCustomerID], [txtLength],
[txtCoilListGauge])) Then
Me.txtTolling = TPID(Forms![frmOrder]![cboCustomerID], [txtLength],
[txtCoilListGauge]) & " lb."
Me.txtEstimatedPieces.Requery
Else
Me.txtTolling = TollingPrice([txtLength], [txtCoilListGauge]) & "
lb."
Me.txtEstimatedPieces.Requery
End If
Example B
If Me.txtLength > 0 And Me.txtCoilListGauge > 0 And Not
IsNull(TPID(Forms![frmOrder]![cboCustomerID], [txtLength],
[txtCoilListGauge])) Then
Me.txtTolling = TPID(Forms![frmOrder]![cboCustomerID], [txtLength],
[txtCoilListGauge]) & " lb."
Me.txtEstimatedPieces.Requery
End If
If Me.txtLength > 0 And Me.txtCoilListGauge > 0 And
IsNull(TPID(Forms![frmOrder]![cboCustomerID], [txtLength],
[txtCoilListGauge])) Then
Me.txtTolling = TollingPrice([txtLength], [txtCoilListGauge]) & "
lb."
Me.txtEstimatedPieces.Requery
End If
Thanks,
Gina
Why doesn't Example A work but Example B work?
Example A
If Me.txtLength > 0 And Me.txtCoilListGauge > 0 And Not
IsNull(TPID(Forms![frmOrder]![cboCustomerID], [txtLength],
[txtCoilListGauge])) Then
Me.txtTolling = TPID(Forms![frmOrder]![cboCustomerID], [txtLength],
[txtCoilListGauge]) & " lb."
Me.txtEstimatedPieces.Requery
Else
Me.txtTolling = TollingPrice([txtLength], [txtCoilListGauge]) & "
lb."
Me.txtEstimatedPieces.Requery
End If
Example B
If Me.txtLength > 0 And Me.txtCoilListGauge > 0 And Not
IsNull(TPID(Forms![frmOrder]![cboCustomerID], [txtLength],
[txtCoilListGauge])) Then
Me.txtTolling = TPID(Forms![frmOrder]![cboCustomerID], [txtLength],
[txtCoilListGauge]) & " lb."
Me.txtEstimatedPieces.Requery
End If
If Me.txtLength > 0 And Me.txtCoilListGauge > 0 And
IsNull(TPID(Forms![frmOrder]![cboCustomerID], [txtLength],
[txtCoilListGauge])) Then
Me.txtTolling = TollingPrice([txtLength], [txtCoilListGauge]) & "
lb."
Me.txtEstimatedPieces.Requery
End If
Thanks,
Gina