Close

Results 1 to 6 of 6

Thread: Access Query

  1. #1
    DF VIP Member craig99's Avatar
    Join Date
    Jan 2001
    Location
    Glasgow
    Posts
    151
    Thanks
    0
    Thanked:        0
    Karma Level
    296

    Help Access Query

    Hope someone can help here!

    I have a Access query set up with seven difference search parameters tied to a form.

    Basically regardless of what parameters are filled on the form (blank and everything) I want the query to return results based only on the fields completed.

    I've tried the 'Is Null' function but all this does is return all records and ignores the other completed parameters.

    i.e if the start date and end date are the only fields completed then the query would return everything within this criteria regardless of the other fields. If only the supplier field was completed then again everything for this criteria.

  2. #2
    DF VIP Member matthewy2's Avatar
    Join Date
    Mar 2008
    Location
    Bolton
    Posts
    2,486
    Thanks
    52
    Thanked:        65
    Karma Level
    314

    Default Re: Access Query

    im half smashed and cudnt read this proper lol.
    if ur having a problem searchin for blanks try " "

    ill read gain toimoz
    PS3 - FIFA 09 - DF CHAMPION!!!!
    PS3 - FIFA 10 - DF CHAMPION!!!!
    and now
    PS3 - FIFA 11 - DF CHAMPION!!!!

  3. #3
    DF VIP Member StephenDon24's Avatar
    Join Date
    May 2007
    Location
    Manchester
    Posts
    972
    Thanks
    0
    Thanked:        0
    Karma Level
    257

    Default Re: Access Query

    Not sure I totally follow but try
    Code:
    <>""
    or
    Code:
    LIKE *

  4. #4
    DF VIP Member OrangeJuicey's Avatar
    Join Date
    Aug 2006
    Location
    London
    Posts
    1,283
    Thanks
    1
    Thanked:        4
    Karma Level
    290

    Default Re: Access Query

    does this help

    http://www.fmsinc.com/tpapers/querie...lect%20Queries

    http://office.microsoft.com/en-us/ac...666111033.aspx

    There are things called criteria in hibernate for java which do the sort of functionality that your talking about. If you have 9 parameters and you provide 5 it'll search for matches using the 5 you did provide. It must be something along the lines of allowing each of the parameters to be nullable.

  5. #5
    DF VIP Member craig99's Avatar
    Join Date
    Jan 2001
    Location
    Glasgow
    Posts
    151
    Thanks
    0
    Thanked:        0
    Karma Level
    296

    Default Re: Access Query

    Thanks,

    I'll have a good read and experiment and let your know

  6. #6
    DF VIP Member SiE's Avatar
    Join Date
    Jan 2001
    Location
    My comfy sofa
    Posts
    7,211
    Thanks
    196
    Thanked:        407
    Karma Level
    787

    Default Re: Access Query

    either that or get your criteria off a form and use code to build a custom sql query depending on which text boxes have been entered

Similar Threads

  1. Xbox Storage Query
    By slain in forum Microsoft Consoles
    Replies: 1
    Last Post: 12th October 2002, 11:52 PM
  2. need access but don`t know password
    By yorg in forum PC Problems
    Replies: 4
    Last Post: 11th October 2002, 06:59 PM
  3. access problem
    By Aware in forum Forum Bug & Error Reports
    Replies: 1
    Last Post: 30th September 2002, 09:24 PM
  4. Free to access channels
    By benjiguy in forum Digital Satellite TV
    Replies: 4
    Last Post: 23rd September 2002, 09:56 PM
  5. AR2 v2 Query
    By rmj2663 in forum Sony Consoles
    Replies: 6
    Last Post: 8th September 2002, 07:54 PM

Social Networking Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •