Results 1 to 4 of 4
  1. #1
    wnicole is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    118

    Filter form with parameterized query


    I have also tried this search form from You Tube. It works fine however it doesn't pull up all my records.
    I was told I need to add some IsNull code to it.
    Would you happen to know how to do that to the criteria?
    Last edited by June7; 10-03-2013 at 12:34 AM.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    If any fields could have null for any records then two options.

    1. use Is Null criteria along with the wildcard

    Like "*" & [input value] & "*" Or Is Null

    2. Handle the null with an expression that calculates a field in query like:
    Mid: Nz([MiddleName],"")
    and apply the wildcard criteria to that constructed field.
    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.

  3. #3
    wnicole is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    118
    Ok I will try the or is null today and let you know ...I have reAd thread they that doesn't work but not sure.


    So question... I would do " or is null on each columns after wildcard on same row correct? Or do I put it on the row that say "OR ?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    I think either way should produce the same SQL statement. Try them and let me know.
    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. Create records for date range
    By wnicole in forum Access
    Replies: 1
    Last Post: 10-03-2013, 09:02 AM
  2. Parameterized Queries in Access 2010
    By Raptor_45 in forum Queries
    Replies: 1
    Last Post: 02-05-2013, 07:36 PM
  3. Replies: 2
    Last Post: 01-30-2013, 07:34 PM
  4. Form with parameterized query
    By ngruson in forum Forms
    Replies: 3
    Last Post: 08-11-2010, 11:08 AM
  5. Count distinct records in parameterized query
    By SilverSN95 in forum Access
    Replies: 5
    Last Post: 07-27-2010, 09:31 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