G
GA
Hello,
I've been asked to provide a more informative message than "Index or
primary key cannot contain a null value" when a control is left empty.
Everything I've tried up to now has failed.
This relates to a combobox control on a subform which together with
the record id on the main form forms the primary key for the subform
record.
I set the combo to be first in the tab index and thought that if it
lost focus whilst still null I could generate my own dialogue message
before the system one 'kicked in' but I can't get this to work.
What's the best way to achieve this please?
Thanks GA
I've been asked to provide a more informative message than "Index or
primary key cannot contain a null value" when a control is left empty.
Everything I've tried up to now has failed.
This relates to a combobox control on a subform which together with
the record id on the main form forms the primary key for the subform
record.
I set the combo to be first in the tab index and thought that if it
lost focus whilst still null I could generate my own dialogue message
before the system one 'kicked in' but I can't get this to work.
What's the best way to achieve this please?
Thanks GA