Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Apr 2005
    Location
    Plovdiv
    Posts
    109
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is Not Null (Access 2000)

    I want to update all the empty records of the field sellers but only when
    the record is not Null.Otherwise i will erase the existent data.Since the field was not set
    with a default value = 0, i get these problems.
    How can i improve the code line below in such a way as to set the record to 0.I presume i must use If Is Not Null


    StrVa = " UPDATE products SET sellers = 0"

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Is Not Null (Access 2000)

    What exactly do you mean by "the record is not null"? If you want to set sellers to 0 if sellers is blank, use

    StrVa = " UPDATE products SET sellers = 0 WHERE sellers Is Null"

Posting Permissions

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