Or change your database to allow zero-length for that field
MyTable.Fields("MyField").AllowZeroLength = True
Janne
"Unicorn" <unicorn DeleteThis @midcoast.com.au> kirjoitti viestissä
news:OrpcvP$kDHA.2244@TK2MSFTNGP12.phx.gbl...
> Or change you database file to allow NULL value for that field
>
> Matt
>
> "DIOS" <sindizzy DeleteThis @softhome.net> wrote in message
> news:7d00f3c.0310160619.4703520a@posting.google.com...
> > Add the string " " or if the field is not required then just skip it.
> >
> > AGP
> >
> >
> > "Carl Morris" <rrrrr DeleteThis @gfgfggf.com> wrote in message
> news:<uwzlLA9kDHA.1096 DeleteThis @TK2MSFTNGP11.phx.gbl>...
> > > Hi,
> > >
> > > In VB6
> > >
> > > I have got a RecordSet (retrieved from an Acces database table)
> containing
> > > one row. I want to edit the row and be able to add an empty string.
> > >
> > > At the moment I do something like
> > >
> > > rstTemp.Edit
> > > rstTemp.Fields(0) = 45 ' some integer
> > > rstTemp.Fields(1) = "jfjfkdkd"
> > > rstTemp.Fields(3) = ""
> > > rstTemp.Update
> > >
> > > I get an error saying update failed because you cannot add a null
value
> > >
> > > Any advice?
> > > Bert
>
><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Add an empty string to a field