I have a form that contains employee data. When a person leaves, I don't want to delete them, but I want to mark it as archived (using a checkbox linked to a boolean field). When I click on the checkbox, I want to run a query on a related table, and if any rows are returned, not allow the box to be checked. I want to present a message box to the user telling them why that person can't be archived, to give them the opportunity to rectify the outstanding discrepancies.
So how do I fire the query and get a return (entier a number, or a null set or ANYthing that I can use as a descriminator)?
All of you have helped me get up to speed with this and I've used alot of your code and methods. My project is growing nicely and with your assistance I'm creating a very robust and usable application.
Thank you