I currently have a form, where the users enter data and loan out books.
I need some way of limiting each user to just 2 books, I have a loan count in a Query called "Bookloans" ,
when the save record button is clicked, im looking to have an "IF" in the Vba codes that refers to the specific field with the users id, and how many books they have, if this value is equal to 2, then bring up a message error box stating that they have already reached the maximum ammount of books, and close the form, if it is lower, then just save the record
Thanks,
Dan
I need some way of limiting each user to just 2 books, I have a loan count in a Query called "Bookloans" ,
when the save record button is clicked, im looking to have an "IF" in the Vba codes that refers to the specific field with the users id, and how many books they have, if this value is equal to 2, then bring up a message error box stating that they have already reached the maximum ammount of books, and close the form, if it is lower, then just save the record
Thanks,
Dan
Comment