>I'm looking for code that will allow me to restrict inputting data in one
>table if data is not found in another table.
[quoted text clipped - 9 lines]
>tblMasterPartList.PartNo field, I need to return a message that says, "go see
>Mark for permission".
You need to use a form to display/add/edit the records in
tblParts. Then you could use the PartNo text box's
BeforeUpdateEvent:
If DCount("*", "tblMasterPartList", _
"PartNo=" & Me.txtPartNo) = 0 Then
Me.txtPartNo.Undo
Cancel = True
MsgBox "go see Mark for permission"
End If

Signature
Marsh
MVP [MS Access]
Nanette - 02 Dec 2006 21:07 GMT
Thanks a bunch Marshall,
I'm going to work this, wish me luck!
> >I'm looking for code that will allow me to restrict inputting data in one
> >table if data is not found in another table.
[quoted text clipped - 20 lines]
> MsgBox "go see Mark for permission"
> End If