Results 1 to 2 of 2

Thread: very newbie question

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274

    very newbie question

    How can I fileter the records where certain field has a null value or another certain value. Something like this:

    SELECt * FROM table WHERE field='E' or fild=null

    It is an Microsoft Access DB.

    Thanks!


  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Columbia, SC USA
    Posts
    374

    give this a whirl

    for strings:
    "Select * From MyTable Where MyField = 'E'"

    for numeric values:
    "Select * From MyTable Where MyField = 2"

    for dates:
    "Select * From MyTable Where MyField = #23/01/2000 12.45.00#

    for nulls:
    "Select * From MyTable Where Not IsNull(MyField)"

    cheers man, hope that helps

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