I have a text box on a form into which I manually input a job number. It is imperitive this be a valid job number. I have a table of all valid job numbers. I have created a query from this job table which returns a valid matching job number from the job table. This works fine. I am trying to compare the text box job number to the returned job number from the query. My thought was to put the query returned number in a variable . Dim SaveValue as Integer. I haven't figured out how to put the query job number in the SaveValue variable. My purpose for doing this is to show message if they do not match. The query woks fine just not the move to the variable.
Is there a better way to accomplish this?
Any thoughts will help.