I am working on a library project and one of the requirements is that a patron is limited to having no more than 5 books checked out at one time. I created a query that returns the number of books checked out based on a patron ID. I want to use the result of this query on the check-out form. For example, when a patron ID is entered the query should run and if the result is more than 5, an error message should be displayed. I cannot get it to work. Any ideas?