Also, I have a text box that has =[DryWeight]/[DeltaWeight]in the control source of Density and if the answer doesn't come back between2.45-249 I need the error to appear, but this code is not working.
HELP
Private Sub Density_BeforeUpdate(Cancel As Integer)
If ((Me.Density < 2.45) Or (Me.Density > 2.49)) Then MsgBox "error check your weights"
Cancel = True
End If
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.