I am trying to validate with the database that the employee number entered matches with what the data base has stored and if it does run my code if not stop it.
what i have--
basically i want it to run if empid and dept are matched in the row that is stored in the database table
thank you for any help you can offer