Results 1 to 7 of 7
  1. #1
    halabis is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Aug 2014
    Posts
    44

    Displaying multiple months worth of data on the same form

    I have a form that has a field for (amongst many other fields) EmployeeName, Month, and Quality. I sort typically filter the data by Month in order to find the quality for each employee for that month.

    What I need to do now is to display/work with the Quality for each employee for the past 6 months. What formula can I put in the text box to have it show me the quality for the previous month, and then another for the month before that, etc so that I have 6 text boxes one for each of the last 6 month's quality.


    Thanks,

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    a form has a record source that can be either a table or query; develop a query that has criteria to result in the 6 months - then copy your form and source it on this query...

  3. #3
    halabis is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Aug 2014
    Posts
    44
    The data is in the query. I just don't know how to pull it to the form. I can view each month individualy, I don't know how to view them all at once.

  4. #4
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    If you want a form that looks much like a query; while the query is open - go to the ribbon, Create, and select Form - try using the Wizard and go for a tabular design....

  5. #5
    halabis is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Aug 2014
    Posts
    44
    Sorry, I don't think I am being clear. I currently have a large and complex (to me) form that I created that tracks several things. One of the many things it tracks is employee quality. But it only does so for the current month. The query I use to pull the data however pulls every month's quality. In order to display the current month's statistics I apply a filter to the month field for the current month. This removes all the pages that have previous month's data. What I want to be able to do is retain this functionality while also being able to display the previous month's quality statistic for the person whose page I have pulled up. The field that has the quality in it is labled as "Quality" I don't know what formula to put into a second field in order for it to also diplay something from the "Quality" field of my query, but from a month that is different from the one I filtered for.

    Example. I want to see John Doe's August numbers across all areas. I need to be able to filter all the data for what John Doe did in August. Except I also want to see what John's Quality was in June and July as well. It needs to be done with one query that I run for all my employees.

    Sorry for the confusion.

  6. #6
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    it does not sound like your current form will be able to display multiple months of data as you seek....so refer to my prior post in making a form that you need...

  7. #7
    halabis is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Aug 2014
    Posts
    44
    Ok, I figured it out.

    I created a new cross tab query with the Employee name as the rows, dates as the columns, and quality as the Value. Then I created a new query that pulled the original query and the cross tab query. Finally I pointed my form to the combined query instead of the original one and was able to pull all the quality data appropriately associated with the Employee names on a given date, even after filtering.

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

Similar Threads

  1. Replies: 2
    Last Post: 09-12-2014, 09:07 AM
  2. Replies: 6
    Last Post: 11-25-2013, 10:53 AM
  3. Replies: 3
    Last Post: 03-12-2013, 11:47 AM
  4. Replies: 1
    Last Post: 06-19-2012, 06:39 PM
  5. Displaying multiple records on one form
    By Juicejam in forum Forms
    Replies: 12
    Last Post: 12-12-2011, 07:02 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