Results 1 to 2 of 2

Thread: Access read NULL or empty value

  1. #1
    Lively Member gigsvoo's Avatar
    Join Date
    Oct 00
    Location
    Malaysia
    Posts
    109

    Lightbulb Access read NULL or empty value

    hi there,

    i had this statement to open recordset


    Rs.Open "SELECT Count(a.booksid) FROM orderdetails a, orders b WHERE a.rdate = '' AND a.ordersno = b.ordersno AND b.memid = '" & txtmemid.Text & "'", Cn, adOpenStatic, adLockReadOnly, adCmdText

    but the problem is i need the SQL statement to check whether the

    a.rdate

    is equal to blank or NULL thats meant no value assigned, but it returns me with the value of 0, anyone nows why?

  2. #2
    Frenzied Member
    Join Date
    Aug 00
    Posts
    1,539
    Rs.Open "SELECT Count(a.booksid) FROM orderdetails a, orders b WHERE a.rdate IS NULL '' AND a.ordersno = b.ordersno AND b.memid = '" & txtmemid.Text & "'", Cn, adOpenStatic, adLockReadOnly, adCmdText

Posting Permissions

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