Results 1 to 2 of 2

Thread: Simple SQL one

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2000
    Posts
    230
    I want to to select all records from a table where a field is not null or is not a zero length string.

    SELECT * From tblTable Where fldFieldName = <<what goes here>>

    thanks
    Shawn Hull
    VB6, SP3 (Professional Edition)

  2. #2
    Lively Member Surgeon's Avatar
    Join Date
    Oct 2000
    Posts
    121
    Something like this maybe :

    SELECT *
    FROM tblName
    WHERE (Not fieldName Is Null) OR (fieldName<>"");

    Surgeon

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