null value

E

_eric clapton

I have a char field which I check the "allow null" property and when I tried
to input an empty string that field, it always give me the following msg:

"You tried to assign Null value to a variable that isn't a Variant data
type"

But if I run it in an update query and I don't get the same message. I am
using SQL2000 and access 97 query. Please help. Thanks.
 
R

Rick Brandt

_eric clapton said:
I have a char field which I check the "allow null" property and when
I tried to input an empty string that field, it always give me the
following msg:
"You tried to assign Null value to a variable that isn't a Variant
data type"

But if I run it in an update query and I don't get the same message.
I am using SQL2000 and access 97 query. Please help. Thanks.

You can't input a zero-length string from the GUI because Access automatically
strips trailing blanks. The append query doesn't do this which is why it works.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top