Results 1 to 2 of 2
  1. #1
    FreddyFordo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    4

    Null Values in Parametery Queries in forms.

    Can anyone help me work out how to cater for people not putting aything in this between date query?



    If they leave it blank Id like it to show all.

    Between [Forms]![Form]![Text_Enter_Date_From] And [Forms]![Form]![Text_Enter_Date_To]

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Try using the Nz() function on each parameter, replacing Null with a date well before/after actual data.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 2
    Last Post: 11-19-2012, 05:42 PM
  2. Finding the Max Date and Null Values if Null
    By SpdRacerX in forum Queries
    Replies: 1
    Last Post: 02-03-2012, 06:29 AM
  3. Return a value of zero for null queries
    By adacpt in forum Access
    Replies: 2
    Last Post: 01-22-2012, 07:41 PM
  4. Merge 2 queries with null? values
    By PrintShopSup in forum Queries
    Replies: 2
    Last Post: 10-03-2011, 09:09 PM
  5. Replies: 4
    Last Post: 04-01-2009, 08:49 PM

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