This is a pretty straight forward example. I have a table of names, and a table to be populated with email addresses.
I have a validation rule to make sure email addresses are valid.
I have a query that will return a list of names that don't yet have email addresses. The idea is that from the query, I can enter in any missed emails. The problem is if I enter an invalid e-mail address into the query, it flags the validation rule text, but then somehow loses it link to the name list and starts giving referential integrity errors. Check out this example and let me know what I'm doing wrong.
To replicate issue:
- Open qryNeedsEmail
- Type an invalid email address in the Email field (ie google.com)
- Hit OK to the error message
- Try either deleting the invalid message or entering in a valid email. Both will give you an error about nothing valid being entered in the Name IDFK field.
This appears to be because the IDFK field isn't filled out if the e-mail record isn't valid. I think I'm missing something really simple, but can't wrap my mind around it. Thanks for the help!