jtseltmann
Programmer
I have a strange problem that I cannot seem to figure out. Here is the setup:
I have a form that is opened from the main menu. On this form there are a few combo boxes. If the user selects a value from the combo box it calls a sub that will attempt to enable/disable fields on that same form. The after_update event fires and calls the sub correctly BUT the first time the form is opened it will not let me use the following check:
If Form_MainMenu.chkBox1.value = -1 Then...
or
If Form_MainMenu.cmbCombo1.value = "" Then...
Both of these return errors saying the "You have entered an expression that has no value"
It only happens when the MainInfo form is blank...I can't understand what is up? The MainInfo form is loaded and open. I click the drop down and the code fires correctly. All variables are set correctly but I can't enable/disble fields at all. BUT if I close the main info form and reopen it..all works fine...?
Does anyone have any thoughts that may push me in the right direction?
Thanks all for your time.
J
I have a form that is opened from the main menu. On this form there are a few combo boxes. If the user selects a value from the combo box it calls a sub that will attempt to enable/disable fields on that same form. The after_update event fires and calls the sub correctly BUT the first time the form is opened it will not let me use the following check:
If Form_MainMenu.chkBox1.value = -1 Then...
or
If Form_MainMenu.cmbCombo1.value = "" Then...
Both of these return errors saying the "You have entered an expression that has no value"
It only happens when the MainInfo form is blank...I can't understand what is up? The MainInfo form is loaded and open. I click the drop down and the code fires correctly. All variables are set correctly but I can't enable/disble fields at all. BUT if I close the main info form and reopen it..all works fine...?
Does anyone have any thoughts that may push me in the right direction?
Thanks all for your time.
J