Results 1 to 6 of 6
  1. #1
    nn92 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2018
    Posts
    3

    Lightbulb sorting/filtering data

    Hi, I have to make a simple query in access,
    here are the pictures which explain what is to be done.

    Click image for larger version. 

Name:	Capture.PNG 
Views:	13 
Size:	4.7 KB 
ID:	32461

    Click image for larger version. 

Name:	Capture2.PNG 
Views:	13 
Size:	6.9 KB 
ID:	32462




    So, I want to achieve somthing like upper picture, but I dont know how to organize it on lower picture...



    Thanks in advance...

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    there are no pictures.

    you can make a simple filter for any form:
    put a text box on the form (txtFind),
    set the afterupdate event:


    Code:
    sub txtFind_Afterupdate()
    If IsNull(txtFind) Then
       Me.FilterOn = False
    Else
       Me.Filter = "[ItemName] like '*" & me.txtFind & "*'"
       Me.FilterOn = True
    End If
    end sub

  3. #3
    nn92 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2018
    Posts
    3
    I reuploaded the pictures and changed the question...
    can you please have a look to the question now?

  4. #4
    nn92 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2018
    Posts
    3
    I reuploaded the pictures and changed the question...
    can you please have a look to the question now?

  5. #5
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    in the query design, dbl-click the field in the table, it will then appear in the query grid.
    if you want to sort, click sort box and choose ASC, or DESC

    this is basic access 101. Find a book on it for review.

  6. #6
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    What you are looking for is called an Aggregate query.

    Maybe start with these sites:

    SQL Aggregation queries using Group By, Sum, Count and Having
    https://www.youtube.com/watch?v=IVMfDpCGwK4

    Aggregate Queries Count Example Access 2013
    https://www.youtube.com/watch?v=YE_7kchsqbA

    SQL Using Aggregate Functions (Programming In Access 2013) by Steve bishop
    https://www.youtube.com/watch?v=CgBcI8rq10k

    Use Aggregate Functions in a Query
    https://www.youtube.com/watch?v=hKIlwIVci5w

    Aggregate Function Queries in Access – Tutorial and Instructions
    https://www.teachucomp.com/aggregate...cess-tutorial/

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

Similar Threads

  1. Help with sorting/filtering
    By sdballer in forum Access
    Replies: 6
    Last Post: 11-04-2014, 06:07 PM
  2. Sorting/Filtering a continuous form
    By Reaper in forum Forms
    Replies: 3
    Last Post: 01-30-2013, 03:07 PM
  3. Sorting/filtering by year and then month
    By Remster in forum Queries
    Replies: 1
    Last Post: 11-08-2011, 07:10 AM
  4. Sorting Data in a Combo Box
    By Mutant_Mike in forum Access
    Replies: 1
    Last Post: 05-03-2011, 03:59 PM
  5. Filtering/sorting data
    By jemelton in forum Access
    Replies: 5
    Last Post: 06-09-2010, 01:47 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