zelarra821
Registered User.
- Local time
- Today, 01:45
- Joined
- Jan 14, 2019
- Messages
- 847
Hi.
I have a form with a dropdown. As it takes values from another table with which it is related, and saves the code in the source table of the form, if the user leaves the field empty, the message "You tried to assign the value Null to a variable that is not a Variant data type ". I have tried with all the possible events, but none of them allow me to customize that error (which would basically consist of replacing the error by putting a default value that I always add in the drop-down, type No data).
I don't know if you understand what I mean. How could I do it?
I have a form with a dropdown. As it takes values from another table with which it is related, and saves the code in the source table of the form, if the user leaves the field empty, the message "You tried to assign the value Null to a variable that is not a Variant data type ". I have tried with all the possible events, but none of them allow me to customize that error (which would basically consist of replacing the error by putting a default value that I always add in the drop-down, type No data).
I don't know if you understand what I mean. How could I do it?