Results 1 to 4 of 4

Thread: Null Values

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 1999
    Location
    Oak Creek, WI, USA
    Posts
    92

    Post

    Using VB6.0 and an Access database, I'm faced with the possibility of having a blank field which gives me a null value error. How can I solve this? I've tried putting "" as a default value but this doesn't work.

    Thanks,

    casox

  2. #2
    Member
    Join Date
    Jan 1999
    Location
    Garden Grove, CA, Orange
    Posts
    55

    Post

    You can check null value with IsNull(rsCustomer("Addr2")), or use Text1 = rsCustomer("Addr2") & "" to avoid null error.

    Joon

  3. #3
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    If you want to allow a null value in your Access database, set the "ALLOW NULLS" property of the field to TRUE. You can do this in MS Access.

  4. #4
    Hyperactive Member compuGEEK's Avatar
    Join Date
    May 1999
    Location
    Mpls,MN,USA
    Posts
    281

    Post

    form.txtField=format(rs("Field"))

    Using this automatically changes a null to ""



    ------------------
    CompuGEEK


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