I am new to Access in general, so my apologies in advance.
I have created a database with table showing details about all of our locations (about 60 in the list). Another table lists individual sales from each location, and there is a relationship between the location number in the two tables.
Now I have created a form to easily enter new sales with a command button to enter the new record. That is all working fine, but what I would like is for the form to first verify that the location number that has been entered is in fact a valid location number before it creates the new record: if not, it gives an error message.
How could I go about doing that? Thanks!
I have created a database with table showing details about all of our locations (about 60 in the list). Another table lists individual sales from each location, and there is a relationship between the location number in the two tables.
Now I have created a form to easily enter new sales with a command button to enter the new record. That is all working fine, but what I would like is for the form to first verify that the location number that has been entered is in fact a valid location number before it creates the new record: if not, it gives an error message.
How could I go about doing that? Thanks!