Hi,
I have a form called frmCommitments, where each user will enter commitments.
Each user has specific Cost Centres that they work on. This is noted within the Cost Centre table, within 3 different columns, Finance Analyst, Finance Technician and Finance Assistant.
When the user (who will log in when using the database and their names will be typed in, in the same way as appear in the above table) select a cost centre within the frmCommitments, I would like it to check if that users name appears against that cost centre, and if not, inform them that this is not one of their cost centres do they wish to continue. If they say no, I just want it to go back to Cost Centre combo box so they can select a different cost centre, if they say yes, because this may happen, then I just want them to be able to close the message box and have nothing happen.
I'm really not sure how to write this in VBA, any help would be great. Thanks.
I have a form called frmCommitments, where each user will enter commitments.
Each user has specific Cost Centres that they work on. This is noted within the Cost Centre table, within 3 different columns, Finance Analyst, Finance Technician and Finance Assistant.
When the user (who will log in when using the database and their names will be typed in, in the same way as appear in the above table) select a cost centre within the frmCommitments, I would like it to check if that users name appears against that cost centre, and if not, inform them that this is not one of their cost centres do they wish to continue. If they say no, I just want it to go back to Cost Centre combo box so they can select a different cost centre, if they say yes, because this may happen, then I just want them to be able to close the message box and have nothing happen.
I'm really not sure how to write this in VBA, any help would be great. Thanks.