Results 1 to 4 of 4

Thread: Question Regarding Null values in a RS [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Addicted Member kidlaley's Avatar
    Join Date
    Jun 2002
    Location
    California
    Posts
    159

    Question Regarding Null values in a RS [RESOLVED]

    i create a recordset (RS) and sometimes the fields return a Null value.. the thing is that when i want to pass the value to a variable, it gives me an error...

    i have try an if statement something like this
    if rs.fields("Something") = Null then
    Variable = 0
    else
    variable = rs.fields("Something")
    end if

    but the thing is that vb executes the else line!!!!

    how can i catch the Null Value????

    help please

    Thanks
    Last edited by kidlaley; Oct 22nd, 2002 at 03:59 PM.
    There's only Three kinds of people in this world.....
    Those that know how to count, and those that do not......
    ]

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