I'm working on a 'hobby' db for tallying votes for 'book of the year'. This db has a short shelf life - about a month or two. Three main tables: Books, Publishers and Votes. Typically there are about 150-200 Book records, 75-100 Publishers, and 1500-2000 Votes. (The Books & Publishers tables are built and indexed properly, with referential integrity applied, etc., but Data integrity, performance, etc., are not significantly important here because of low record count, short shelf-life, etc.)
For ease of data entry, I'd prefer to enter these votes on a datasheet and not on a form/subform. I'm trying to build data entry form that applies these rules and checks votes invalid when appropriate:
Voter must vote for two and only two book titles. If vote count <> 2, all votes are flagged invalid.
Voter may not vote for two books by same publisher. If this condition is not met, all votes are flagged invalid.
I appreciate your help with these validation rules. Here's a screenshot that shows the Votes table as it's currently structured with sample data: