G
Guest
Ok this is a good one. I have a drop box that get the Manufacturer part
number from a table, it then populates a set of fields using the AfterUpdate
event. I want to display a warning to the user that tells them if the
quantity ordered is greater than the quantity quoted. I basically enable a
box is the condition is true. This code only seems to work if i put a break
on the IF statement to debug it, when I remove the break, then it doesnt
work. Any Ideas? Here is the code im using.
Private Sub ManufPartNumbr_AfterUpdate()
Me.Description.Value = Me.ManufPartNumbr.Column(1)
Me.Cost.Value = Me.ManufPartNumbr.Column(2)
Me.txtqtyquoted.Value = Me.ManufPartNumbr.Column(3)
If Me.txtqtyord.Value > Me.txtqtyquoted.Value Then
Me.qtyWarning.Visible = True
Else
Me.qtyWarning.Visible = False
End If
End Sub
number from a table, it then populates a set of fields using the AfterUpdate
event. I want to display a warning to the user that tells them if the
quantity ordered is greater than the quantity quoted. I basically enable a
box is the condition is true. This code only seems to work if i put a break
on the IF statement to debug it, when I remove the break, then it doesnt
work. Any Ideas? Here is the code im using.
Private Sub ManufPartNumbr_AfterUpdate()
Me.Description.Value = Me.ManufPartNumbr.Column(1)
Me.Cost.Value = Me.ManufPartNumbr.Column(2)
Me.txtqtyquoted.Value = Me.ManufPartNumbr.Column(3)
If Me.txtqtyord.Value > Me.txtqtyquoted.Value Then
Me.qtyWarning.Visible = True
Else
Me.qtyWarning.Visible = False
End If
End Sub