Results 1 to 13 of 13
  1. #1
    Join Date
    Oct 2022
    Posts
    6

    Filtering data right at the start

    i my data base i have a entries for when people arrived and what there visit was classed as (there are like 4 types)



    i am trying to create a stacked area graph of the differnt visit classes each day but within the query i cant seem to workout how to
    get data looking something like

    date | class 1 |class 2 |class 2|
    19/7/22| 1 | 2 | 3
    ..... .... ... ....

    any help would be very much appreciated

    Josh

  2. #2
    xps35's Avatar
    xps35 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jun 2022
    Location
    Schiedam, NL
    Posts
    229
    Maybe with a crosstab query?
    Groeten,

    Peter

  3. #3
    Join Date
    Oct 2022
    Posts
    6
    i am not shore i see how that would solve this problem but i am pretty inexperienced in access

  4. #4
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,563
    Upload your database so we can see the table structures.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  5. #5
    Join Date
    Oct 2022
    Posts
    6
    i cant really do that doe to GDPR

    but here is a screen shot of a couple of entries. would that sufficeClick image for larger version. 

Name:	Capture.PNG 
Views:	13 
Size:	33.6 KB 
ID:	48840

  6. #6
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    You need to show how your data is stored, normalized or not normalized.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  7. #7
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    Group by date, category and count category.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  8. #8
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    Quote Originally Posted by Joshua Mills View Post
    i cant really do that doe to GDPR

    but here is a screen shot of a couple of entries. would that sufficeClick image for larger version. 

Name:	Capture.PNG 
Views:	13 
Size:	33.6 KB 
ID:	48840
    Data structures are hardly GDPR compliant?

    Jeez, everyone uses GDPR as an excuse for everything these days.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  9. #9
    Join Date
    Oct 2022
    Posts
    6
    but that gives data like this
    how would i the maked a stacked area graph of each day
    Click image for larger version. 

Name:	Capture.PNG 
Views:	12 
Size:	35.6 KB 
ID:	48841
    I believe it is in UNF

  10. #10
    Join Date
    Oct 2022
    Posts
    6
    the database has things like people phone numbers postcodes and that kind of thing.
    some of that data is for vips thus i cant post it online

  11. #11
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    Quote Originally Posted by Joshua Mills View Post
    the database has things like people phone numbers postcodes and that kind of thing.
    some of that data is for vips thus i cant post it online
    Yes I understand that, but all that was requested was the structures. That pretty much determines how to get the data as you want it.
    I have never played around with graphs in Access, but the key here is getting the data correct.

    As mentioned, if you put that into a crosstab query, what does that show you?
    I'd get rid of the blank entries, which I would have thought should not even exist?

    I do not even have a stacked area graph option in 2007.

    Edit: Certainly seems like there are more than 4 category types?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  12. #12
    Join Date
    Oct 2022
    Posts
    6
    that works thank you.

    i also didnt know you could upload a database without the data in it.

    the blank entries are a common thing in this database the people who use it tend to mange to break stuff

    thank you very much for your help

  13. #13
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    Quote Originally Posted by Joshua Mills View Post
    that works thank you.

    i also didnt know you could upload a database without the data in it.

    the blank entries are a common thing in this database the people who use it tend to mange to break stuff

    thank you very much for your help
    A picture of your relationships would have been a start.

    See this link for hiding your real data should you need to upload a db with data in the future.

    https://www.accessforums.net/showthr...ight=randomize post #19
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Testing Data Base - structure to start me off
    By SingleSide in forum Access
    Replies: 3
    Last Post: 02-25-2019, 05:34 PM
  2. Replies: 3
    Last Post: 03-04-2015, 10:30 AM
  3. start form without data
    By picyx in forum Forms
    Replies: 2
    Last Post: 11-07-2014, 12:02 PM
  4. Replies: 3
    Last Post: 03-19-2014, 12:26 PM
  5. Replies: 2
    Last Post: 02-27-2013, 10:40 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