Results 1 to 3 of 3

Thread: Testing for blank dates????

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 1999
    Location
    Littlehampton, W Sussex GB
    Posts
    203
    I have an Access database with a date field - this does not have to be present. How do I test for null date??

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    All you have to do is something like this:

    Code:
    'Looking at it in a form field of some kind.
    if MyField = "" then
       msgbox "It's Empty"
    else
       msgbox "It's not empty"
    endif
    or

    Code:
    'Looking at it in a query using sql
    Select * from MyTable where MyField = Null;
    That's all there is to it.
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

  3. #3
    Lively Member
    Join Date
    Jan 1999
    Location
    Burlington, IA, USA`
    Posts
    77
    if not isdate
    An ass may bray a good long time before he shakes the stars down.
    T.S. Elliot

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