Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Zero length fields in access database

Status
Not open for further replies.

ronis

Programmer
Jul 14, 2000
9
0
0
US
I have an access database set up not to accept zero-length fields, but they aren't required. What can I do to my coding so that the blank fields don't bomb the code. I seem to be very confused, in Visual Basic all I did was add a "" to the string and it worked fine. Any help would be greatly appreciated.

Thanks.
 
What error are you getting (Invalid use of Null?)
Why can't you just use the same technique (appending an empty string)?
 
I get the error that I can not add a zero length string to the field. When I added the "" to the string it gave me the same error.
 
in my code, to get past this, I just insert Null into the database
 
I am so confused. I tried adding the empty string again and I tried str=Null. Is that correct? I must be missing something here...

Thank you for you help.

Roni

[sig][/sig]
 
I have same problem. I also tried str=NULL, but no luck.
F: Riku Tuominen
riku.tuominen@benchmarking.fi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top