ray_charles
Registered User.
- Local time
- Today, 19:06
- Joined
- Aug 5, 2002
- Messages
- 18
Hello: I have a combo box that displays employee
names, and stores a employeeID in a Orders
table. It works correctly UNTIL . . . I press <spacebar>
and attempt to leave the field either by TAB or ENTER
or whatever. Then I get the following error Msg:
"You tried to assign the Null value to a variable that is
not a variant type"
Then the leave field event is canceled.
Ok. I know how to check the field before attempting to
leave it by using the IsNull function, but, when one or
more spaces are entered, the IsNull function no longer
works and the above error message is generated.
Could this have something to do with the employeeID
being a number?
Also . . . if I attempt to assign a default combo box value
like "(Enter Employee)" via the control default value
property, the default value does not appear.
If anybody can give me a work-around, or, a solution
to my combo box problem, I will nominate them for the
coveted "Ray's Hero" Trophey award
Thanks for any and all input . . . Ray . . .
names, and stores a employeeID in a Orders
table. It works correctly UNTIL . . . I press <spacebar>
and attempt to leave the field either by TAB or ENTER
or whatever. Then I get the following error Msg:
"You tried to assign the Null value to a variable that is
not a variant type"
Then the leave field event is canceled.
Ok. I know how to check the field before attempting to
leave it by using the IsNull function, but, when one or
more spaces are entered, the IsNull function no longer
works and the above error message is generated.
Could this have something to do with the employeeID
being a number?
Also . . . if I attempt to assign a default combo box value
like "(Enter Employee)" via the control default value
property, the default value does not appear.
If anybody can give me a work-around, or, a solution
to my combo box problem, I will nominate them for the
coveted "Ray's Hero" Trophey award

Thanks for any and all input . . . Ray . . .