Allow enty of data outside validation rule without removing rule

G

Guest

I am entering biochemistry data which has a normal range. I want to use the
validation rule to alert me when data is outside the normal range, so that QC
can be performed automatically on the data entered. However, I want to be
able to enter data outside of the normal range on second entry if this is the
true value. Can this be done using the field validation rule or not?
 
P

Pieter Wijnen

Wouldn't think so.
You could display a warning in the control's afterupdate event in the form
though

Private Sub Text0_AfterUpdate()
If Access.Nz(Me.Text0.Value,0) > 100 Then
MsgBox "Please check validity of
value",VBA.vbMsgBoxStyle.vbWarning,"Text0"
End If
End Sub

Pieter
 
J

John W. Vinson

Can this be done using the field validation rule or not?

No. Either a field matches the validation rule or it does not; if it does not,
then the value cannot be entered.

Use the BeforeUpdate event on a Form as suggested.

John W. Vinson [MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top