Results 1 to 3 of 3
  1. #1
    winterh is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    110

    Bit of a odd Queries

    I have four columns which a user can add one of four names, I have done an example below for you to look over.



    Column1 Column2 Column3 Columns4 ID
    John John Peter 1
    Peter John Simon Peter 2

    What I want is to see the information which to do with "john" so in the query, under Criteria in Column1 i added "john" but if i would do the same in coloum2 3 and 4 it would not return any information.

    So I guess I need something like "John" Or If Null (I know this is not right)

    Sorry not to clear but hope this make some sense.

  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,652
    For starters, you data is probably not normalized if you have 4 fields the name could be in. That said, if you put the criteria for each field on a different line in design view, that creates an "OR" instead of "AND" comparison.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    winterh is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    110
    I will try it, I have worked a long winded work around where I run a query for each name on each column but as you understand is giving loads of work.

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

Similar Threads

  1. Sub Queries
    By waqas in forum Queries
    Replies: 5
    Last Post: 01-24-2012, 11:48 AM
  2. Need Help with Queries (I think)
    By Cath_from_Canada in forum Access
    Replies: 2
    Last Post: 03-14-2011, 08:34 AM
  3. Sum Queries
    By Lilsug in forum Access
    Replies: 4
    Last Post: 12-17-2010, 08:45 AM
  4. Replies: 5
    Last Post: 02-08-2010, 06:12 PM
  5. need help with queries
    By gromit95 in forum Queries
    Replies: 1
    Last Post: 02-06-2009, 06:50 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