I have a small form which is used to record recommendations against health issues for a patient.
The form had 2 combo boxes on it; Recommendation and Status.
Recommendation gets it values from a lookup table. The rowsource of the recommendation combo is set to the following:
SELECT codes_Recommendations.RecommendationTypeID, codes_Recommendations.Recommendation FROM codes_Recommendations ORDER BY codes_Recommendations.Recommendation;
The status combo uses a value list and defaults to a value of "Ongoing".
Next to the recommendation combo the is a little button which opens up another dialog form that allow the users to add to the list of recommendations in the combo.
The problem I am having is that the users are starting to type into the combo, then when they realise what they are typing isn't in the list they delete it using the backspace key then click the little button to try and add it into the list.
When they click the button they are getting the following error:
"You tried to assign the Null value to a variable that is not a Variant data type"
This only happens when they delete out what they have typed into the combo.
Any thoughts?
The form had 2 combo boxes on it; Recommendation and Status.
Recommendation gets it values from a lookup table. The rowsource of the recommendation combo is set to the following:
SELECT codes_Recommendations.RecommendationTypeID, codes_Recommendations.Recommendation FROM codes_Recommendations ORDER BY codes_Recommendations.Recommendation;
The status combo uses a value list and defaults to a value of "Ongoing".
Next to the recommendation combo the is a little button which opens up another dialog form that allow the users to add to the list of recommendations in the combo.
The problem I am having is that the users are starting to type into the combo, then when they realise what they are typing isn't in the list they delete it using the backspace key then click the little button to try and add it into the list.
When they click the button they are getting the following error:
"You tried to assign the Null value to a variable that is not a Variant data type"
This only happens when they delete out what they have typed into the combo.
Any thoughts?