CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2000
    Posts
    7

    how to add a null string in a access database

    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


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: how to add a null string in a access database

    yes, you can.
    if you use a recordset object:
    rs.fields(fieldIndexOrNumber).Value = NULL
    (assuming that your field is nullable in the table.


  3. #3
    Join Date
    Feb 2000
    Location
    Indiana
    Posts
    308

    Re: how to add a null string in a access database

    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





  4. #4
    Join Date
    Feb 2000
    Posts
    7

    Re: how to add a null string in a access database

    cool, that's what i need, thanx


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured