Can someone please help me out with writing a function.
I have a pair of text boxes on a form that enter data into a table (Table1).these text boxes together form a PK. However before the data is entered i need the data in these fields to be checked against another table(2), to see if this record has already been entered into that table, if so i need a msg box to pop up and prompt me.
I have very little experience with writing functions so as much explanation as possible would be greatly appreciated.
I have a pair of text boxes on a form that enter data into a table (Table1).these text boxes together form a PK. However before the data is entered i need the data in these fields to be checked against another table(2), to see if this record has already been entered into that table, if so i need a msg box to pop up and prompt me.
I have very little experience with writing functions so as much explanation as possible would be greatly appreciated.