E
every1luvsVB
Hello fellow VB programmers, am at a loss with this one..
I have a 2-toggle button frame on a form. The point of the toggling is to
hide / make visible certain combo boxes on this form, depending one which
toggle is pressed, and vice versa, for the other toggle.
On frame update event, I call a custom function that 'initialises' the form,
i.e. sets certain controls' visibility properties and (most particularly for
this issue..) clears the combo boxes' text properties (so that the next time
certain combo boxes appear, they will not be displaying their previously
selected values..) My function basically comprises of a case statement, based
on either numeric toggle value..
HOWEVER, when code execution reaches the clearing of the combo boxes' text
property, i.e.
thisForm!cboMember.SetFocus
thisForm!cboMember.Text = ""
-I run into grief, on the attempted NULL assignment, i.e. I receive the
following error message:
'The macro or function set to the BeforeUpdate or ValidationRule property for
this field is preventing [db_name] from saving the data in the field.' OK
Well it isn't OK -cos there aint no BeforeUpdate or ValidationRule code that
I can see. Although this error seems to commonly appear in various discussion
threads, I can't find a relevant solution for the damned thing!!
Any help would be appreciated. Thanks heaps!
I have a 2-toggle button frame on a form. The point of the toggling is to
hide / make visible certain combo boxes on this form, depending one which
toggle is pressed, and vice versa, for the other toggle.
On frame update event, I call a custom function that 'initialises' the form,
i.e. sets certain controls' visibility properties and (most particularly for
this issue..) clears the combo boxes' text properties (so that the next time
certain combo boxes appear, they will not be displaying their previously
selected values..) My function basically comprises of a case statement, based
on either numeric toggle value..
HOWEVER, when code execution reaches the clearing of the combo boxes' text
property, i.e.
thisForm!cboMember.SetFocus
thisForm!cboMember.Text = ""
-I run into grief, on the attempted NULL assignment, i.e. I receive the
following error message:
'The macro or function set to the BeforeUpdate or ValidationRule property for
this field is preventing [db_name] from saving the data in the field.' OK
Well it isn't OK -cos there aint no BeforeUpdate or ValidationRule code that
I can see. Although this error seems to commonly appear in various discussion
threads, I can't find a relevant solution for the damned thing!!
Any help would be appreciated. Thanks heaps!