I'm sure this is quite straight foward using a DLookup function of similar, but can anybody help with the following:
I have a main table with a number field. On either the BeforeUpdate or AfterUpdate events I need the number the user enters into this field to lookup another table to see if the number entered is amongst the numbers in this 2nd table? If so, 'true', I then need to output a message box and perhaps autofill some other fields on the form. The latter part I can do (hopefully) but I'm stuck with the code for the lookup part?
Any help is always greatly appreciated!
I have a main table with a number field. On either the BeforeUpdate or AfterUpdate events I need the number the user enters into this field to lookup another table to see if the number entered is amongst the numbers in this 2nd table? If so, 'true', I then need to output a message box and perhaps autofill some other fields on the form. The latter part I can do (hopefully) but I'm stuck with the code for the lookup part?
Any help is always greatly appreciated!