By Richard Rost 4 days ago
Table-Level Validation Rule, Check Multiple Fields
In this video, I'll teach you how you can setup multiple-field validation rules in your Microsoft Access tables so that you can compare different field values before allowing a record to be saved.
Natalie from Detroit, Michigan (a Gold Member) asks: When closing out my drawer at the end of each night, I like to enter the total amount of cash counted, and then the total amount taken out for the deposit. The deposit amount cannot be larger than the total count, of course, but once in a while someone types it in wrong and it messes everything up. Is there a way to have Access check this and not let them type in a value that would make the drawer go negative, or below $100, which is the amount I like to leave in the drawer for the next day?
Members will learn how to use a BeforeUpdate event with DLookup or DSum functions in order to check values in other records, or even other tables altogether.
Silver Members and up get access to an Extended Cut of this video. Gold Members can download the database template from class plus get access to the Code Vault. If you signed up on YouTube you have to contact me so I can set up your account here on my web site. If you're not a member, Join Today!
Table-Level Validation Rules: https://599cd.com/ACX28
Simple Validation Rules: https://599cd.com/Validation