Click to See Complete Forum and Search --> : how to add a null string in a access database


kindjal
February 16th, 2000, 05:39 AM
hi,

i would like to know if we can assign a null string value (ie "") into a field of an access 97 or 2000 database ?

thank for your help

Lothar Haensler
February 16th, 2000, 06:00 AM
yes, you can.
if you use a recordset object:
rs.fields(fieldIndexOrNumber).Value = NULL
(assuming that your field is nullable in the table.

Kyle Burns
February 16th, 2000, 07:00 AM
This wouldn't insert an empty string, though. The difference between NULL and an empty string is huge when you're running a query. I think the answer that's being looked for this time is:

rs(fieldIndexOrNumber) = vbNullString

kindjal
February 16th, 2000, 04:02 PM
cool, that's what i need, thanx