Hi Adrian
You can define a validation rune at table level to check for conditions
involving multiple fields. For example:
Not (TextField="ABC" and IsNull(NumField))
However, it's probably neater and more user-friendly to handle it it the
BeforeUpdate event of your data entry form:
If TextField="ABC" and IsNull(NumField) Then
NumField.SetFocus
MsgBox "You must provide a number here if ..."
Cancel = True
End If
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
adrian said:
i would like to have a number required in a field, but only when a specific
text is present in another field of the same table using Access