Results 1 to 2 of 2
  1. #1
    tylerg11 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    200

    Null alternative for Date/Time field


    I do not allow Null values in my database. I was just wondering if there is a "Null Alternative" for a Date/Time field. I would rather not populate each record with a dummy value like 12/31/9999. Is there anything else I could use. Would the Nz() function work?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,915
    In a query:
    Nz(datefield,#12/31/9999#)

    Exactly what is the issue with null value in date field? What is it interfering with?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Date/Time Field
    By donnan33 in forum Programming
    Replies: 2
    Last Post: 01-19-2012, 04:03 PM
  2. Getting Just the Date part of Date/Time field
    By GaryElwood in forum Reports
    Replies: 7
    Last Post: 09-28-2011, 09:58 AM
  3. Passing a NULL value to a date field
    By lman in forum Queries
    Replies: 2
    Last Post: 02-22-2011, 02:20 PM
  4. Replies: 2
    Last Post: 09-27-2010, 02:17 PM
  5. date/time field
    By James890 in forum Database Design
    Replies: 1
    Last Post: 04-18-2007, 07:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums