D
Dave
Hi again,
I would like to prevent a record from becoming added if a particular
field is left empty. Normally that would be easy through validation
rules or required field in the table. However, the particular field I'm
referring to is a hidden because it's just a foreign key to the primary
key of another table. This foreign key field is a child to a parent in
another subform. It's possible to select a blank record in the other
subform which then won't populate this particular field. Anyway, if I
just use validation rules, I end up in a loop with a message box. How
can I prevent this? Perhaps something in the Before Update event or a
message box with a record undo button..
PS. I'm not the greatest with code yet, but I'm working on it.
Thanks,
Dave B
I would like to prevent a record from becoming added if a particular
field is left empty. Normally that would be easy through validation
rules or required field in the table. However, the particular field I'm
referring to is a hidden because it's just a foreign key to the primary
key of another table. This foreign key field is a child to a parent in
another subform. It's possible to select a blank record in the other
subform which then won't populate this particular field. Anyway, if I
just use validation rules, I end up in a loop with a message box. How
can I prevent this? Perhaps something in the Before Update event or a
message box with a record undo button..
PS. I'm not the greatest with code yet, but I'm working on it.
Thanks,
Dave B