Results 1 to 4 of 4
  1. #1
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183

    seeking solution to creating either a form/report in Access

    I was wondering if I can build something like this in Access.
    I have a table which contains field like:
    City l Province l NumberPopulation l QuarterYear
    Los Angeles l California l 300 l Q1, 2008
    Denver l Colorado l 300 l Q4, 2009
    Columbus l Ohio l 300 l Q2, 2008
    Charlotte l North Carolina l 200 l Q3, 2009
    Charlotte l North Carolina l 200 l Q1, 2008
    Columbus l Ohio l 300 l Q3, 2009

    and so on.


    I want to create a report maybe or form which will give me output with two tables. The first table summarizes the data of all record. Example.
    I want to have something like
    City l Province l NumberPopulation l QuarterYear
    but only show the City or province or quarters that I choose
    Example,
    If I choose Denver or Q4 2009, it should give me output like
    Denver l Colorado l 300 l Q4, 2009

    Now the next table should have similar headings
    City l Province l NumberPopulation l QuarterYear
    but gives me an output of ALL minus Denver
    example:

    All l All l 500 l Q1, 2008
    All l All l 300 l Q2, 2008
    All l All l 0 l Q3, 2008
    All l All l 0 l Q4, 2008
    All l All l 0 l Q1, 2009
    All l All l 0 l Q2, 2009
    All l All l 500 l Q3, 2009
    All l All l 0 l Q4, 2009
    Over here you would see Q4, 2009 is 0 because I chose Denver in my first table.

    I know it is confusing. I hope someone might come up with some bright ideas.
    Thank you

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Create your Table and put all your data in.
    Then you can create either two queries that will give you the two different Datasets you want

    OR

    you can create one Union Query that displays first the records WITH the City you want and then the records WITHOUT the City that you displayed in your first part.

    Then you can use the Query to create a Report that will Show Denver as one Group and 'All' as the next Group.

    Let me know if you need more detail or if you have any questions.

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    It sounds to me like you're trying to make a table out of summarized data which I really would not recommend. Storing calculated values is almost never a good idea, particularly if the data changes frequently. You can do what you want with queries. Here is a simple example of doing it on a form. The queries running each of the list boxes can be used to run reports or to export etc.

  4. #4
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Thanks to you two.. I will definitely try them out soon and see which one...

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

Similar Threads

  1. Web Based Solution Reading Access Database
    By EddieN1 in forum Access
    Replies: 1
    Last Post: 08-06-2011, 04:38 PM
  2. Access 2010 package solution upgrade option
    By snoopy2003 in forum Programming
    Replies: 5
    Last Post: 05-17-2011, 09:23 AM
  3. Creating a report from a form
    By sabre1 in forum Forms
    Replies: 2
    Last Post: 11-12-2010, 03:32 PM
  4. Newbie seeking input
    By Bruzer in forum Access
    Replies: 1
    Last Post: 04-07-2010, 09:03 AM
  5. Replies: 5
    Last Post: 07-26-2009, 12:13 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