Linked tables validation

habbabub

Registered User.
Local time
Today, 05:25
Joined
Jan 24, 2008
Messages
73
if i had two tables (A and B) which are linked by one feild eg. "user ID"

how would i make it so that when data for (table B) is typed into a form that if that "user ID" dosent exist in A then it will not add the record to table B?
 
If table A is the ONE of a One-To-Many relationship and table B is that many of the one-to-many relationship, you can set your relationships in the relationship window to set Referential Integrity (RI) so that it won't let you add a record in B without a matching record in A.
 
hows that done?:eek:
 
thats alright i found out how.. but how can i make it so that it shows a msg box that i can type in my own error message?
 
but it dosent show how to create a msg command.

rather than have a generic error msg when the error arises i can type in a message that lets the user know what is wrong..

whould u know how to do ithis?
 

Users who are viewing this thread

Back
Top Bottom