Results 1 to 10 of 10
  1. #1
    claudia_lovez_u is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    9

    Query design help

    I'm not sure how to do the following querys on my excel homework with a data the teacher gave me?



    1. Show only two columns: Employee FName & Lname, where LName begins with B or H, ascending sort on LName.
    2. Show only two columns: Employee FName & LName, excluding those records where the City ends with “o” or “n”. Sort ascending on FName. Hint: Use NOT, LIKE, Wildcard symbol, AND





    Can anyone help me? thank you

  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
    What have you got so far?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    claudia_lovez_u is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    9
    well i already created the querys but I don't know how to sort it. I'm new to Access so this is confusing




    Quote Originally Posted by pbaldy View Post
    What have you got so far?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    In design view you should see a row titled "Sort". In SQL view, you'd add an ORDER BY clause.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    claudia_lovez_u is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    9
    I see it in design view but how would I make it to show the LNames begins with B or H?

  6. #6
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Do you want only names that begin with B or H?

    If yes, then in your criteria, type Like B* or Like H*

  7. #7
    claudia_lovez_u is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    9
    Thanks a lot for the help! could you please help me with #2 also? I don't know how to do it if the city column is not suppoused to be shown in the query

  8. #8
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Look at this link for examples.

    http://www.techonthenet.com/access/queries/like2007.php
    You need to do your own homework. I didn't read the whole thread the first time.

  9. #9
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    If you don't want the criteria field to show, unclick the 'Show' box in the query grid.
    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.

  10. #10
    claudia_lovez_u is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    9
    thank you so much! now I understand..!

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

Similar Threads

  1. Query - Design View
    By Rick West in forum Queries
    Replies: 4
    Last Post: 04-09-2012, 04:09 PM
  2. Table design or query or?
    By Laaacux in forum Database Design
    Replies: 5
    Last Post: 02-22-2011, 02:13 PM
  3. Export query design
    By somm in forum Access
    Replies: 2
    Last Post: 01-20-2011, 03:17 AM
  4. Query Design Question
    By copegjc15 in forum Queries
    Replies: 7
    Last Post: 11-13-2010, 10:28 PM
  5. query syntax or design help ....
    By cowboy in forum Queries
    Replies: 1
    Last Post: 02-04-2010, 11:24 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