on 04-23-2015 10:07 PM
I need to throw a warning if a default isn't present on creation of a column. Is it possible to have a warning window rather than an error window pop up when a validation event is used? I've looked at Initialize and CanCreate, but they don't seem to fit this situation. Any feedback?
Thanks
I would add a custom check for this one; a Validate event handler will run lots of times when you don't want it to, such as obtaining a list of columns. The Initialise event handler could call the same function as the custom check does
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Jane,
your event handler (Validate, Initialize or any other) doesn`t have to end by False return value. You can warn your user using output message in Output window. I don`t recommend using MsgBox function in any event handler. According to my experience it causes unpredicable errors, which are hard to reveal.
You are talking about the moment of creation of column. Instead of warning, I`d suggest adding few lines of code into the Initialize event handler, which will fill the Column Default value instantly.
Hope this helps,
Ondrej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.