G
Guest
I have a form that I would like to use a validation rule on. The form is used to check that the correct sales rep gets credit for the sale. In the db I have a table that has all of the sales reps with the following fields. Last Name and Last 4.
On the sales form we use now (hard copy form) only the last 4 appear. In the Access program we have the last name of who we think the sales rep is. The last 4 field is left blank until the sale in final and we get the hardcopy of the sales agreement. When we get the hard copy we open the Access form for that sale and type in the last 4 that is on the hard copy.
We then lookup the last 4 in the sales Rep table and check that the Last name and last 4 match. On occasion we will find one that they do not match.
I would like to have it so that when the user types in the last 4 from the hard copy the validation rule would go to the sales rep table and get the matching last 4 and last name then check the last name agents the last name that aperies on the current form that the user just typed in last 4 into. If it does not match then the user would get a Msg Bx that would tell him/her that the last for and last mane do not match.
Can I do this? Thanks.
On the sales form we use now (hard copy form) only the last 4 appear. In the Access program we have the last name of who we think the sales rep is. The last 4 field is left blank until the sale in final and we get the hardcopy of the sales agreement. When we get the hard copy we open the Access form for that sale and type in the last 4 that is on the hard copy.
We then lookup the last 4 in the sales Rep table and check that the Last name and last 4 match. On occasion we will find one that they do not match.
I would like to have it so that when the user types in the last 4 from the hard copy the validation rule would go to the sales rep table and get the matching last 4 and last name then check the last name agents the last name that aperies on the current form that the user just typed in last 4 into. If it does not match then the user would get a Msg Bx that would tell him/her that the last for and last mane do not match.
Can I do this? Thanks.