Hi -
I want to put a restriction on data entered in a 1st subform (“sfr2”), but don’t know how to write the code. Want I want to say is: If sfr2.cboBox = 6, then sfr2.QtyApproved cannot be greater than sfr1.FinalQty.
I tried as an After Update Event:
If Me.sfr2.cboBox = 6 then
Me.sfr2.QtyApproved <= Me.Parent.sfr1.FinalQty
But it didn’t work. I also tried it as a Validation Rule, but it didn't work either (didn't seem to like the If). Any suggestions?
Thanks.
I want to put a restriction on data entered in a 1st subform (“sfr2”), but don’t know how to write the code. Want I want to say is: If sfr2.cboBox = 6, then sfr2.QtyApproved cannot be greater than sfr1.FinalQty.
I tried as an After Update Event:
If Me.sfr2.cboBox = 6 then
Me.sfr2.QtyApproved <= Me.Parent.sfr1.FinalQty
But it didn’t work. I also tried it as a Validation Rule, but it didn't work either (didn't seem to like the If). Any suggestions?
Thanks.