Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I don't have a solution for you but you are obviously overwhelming Access with your query. You may simply have to simplify thing a bit to get it to work.

  2. #17
    bignate is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    47
    Okay thanks, Offie said the criteria I was using was wrong. I'm guessing what I wrote in the criteria was too complex or didn't make sense. Do you know the correct criteria I should use to make it so that if a field is left blank then nothing returns, if you enter information into a field results will return that are exactly the same or contain what you put into the field. For example if you put 'John' into full name and left 'Age' blank then results will return with 'John' and 'Johnathan' with any age. basically like a normal search engine. I think I need to use 'LIKE' in the criteria.

    Thanks

  3. #18
    offie is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    176
    How do you want them to show up?
    Ex:
    Age: 18
    Name: Bob
    1: Show all age 18 and all name Bob
    2: Show All 18 year olds who are named Bob.

    Why do you want it to be blank if eveything is blank? Usually you get everything then then set parameters to narrow down what you have.

  4. #19
    bignate is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    47
    I want the second one. Show All 18 year olds who are named Bob. Yeah I do mean everything but the parameters narrow it down. Maybe I didn't explain my self well enough.

    Thanks

  5. #20
    bignate is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    47
    Quote Originally Posted by offie View Post

    Usually you get everything then then set parameters to narrow down what you have.
    This is what I want

  6. #21
    offie is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    176
    Not sure what you're up to right now with all the message confusion going on, but try the like with the "*"
    A good tool is this video, pretty simple stuff but you can see everything.
    http://www.youtube.com/watch?v=CTiA_4Me0cI

  7. #22
    bignate is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    47
    As a base: Like "*" & Forms!... & "*"
    What this does is default shows eveything (when the textbox is blank) but when the text box has something in it it will show [Everything][Specified][Everything]
    So if you type in "may" things that will show up will include "mayday" "end of may" and so on. If want only to start with Forms!... then get rid of the first "*" &

    If you type in the format for all of your fields:
    Ex: Age, Name, Job
    >If you leave it blank then everything will show up
    >If you enter 18 as the age then all records that have an age of 18 will show up
    >If you enter 18 and Bob then all records that have both 18 and Bob will show up
    >Same including Job
    >If you enter only Doctor as the Job then all the rows with Doctors will show up.

    This is what you messaged me earlier and it is exactly what I want, thank you

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. space between Detail and Footer
    By ConfusedMike in forum Reports
    Replies: 5
    Last Post: 11-17-2015, 05:46 PM
  2. Tab space
    By jamesfranklin in forum Queries
    Replies: 11
    Last Post: 11-18-2012, 08:29 PM
  3. Replacing space with dot
    By JeroenMioch in forum Programming
    Replies: 15
    Last Post: 10-22-2012, 07:09 AM
  4. Space between two text boxes
    By ashbear in forum Reports
    Replies: 3
    Last Post: 08-17-2011, 05:02 PM
  5. Getting Rid of Empty Space
    By Pam Buckner in forum Database Design
    Replies: 5
    Last Post: 03-05-2010, 05:46 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