Results 1 to 2 of 2
  1. #1
    slaterino is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2009
    Posts
    25

    Changing field data into labels on the y-axis

    Hi,
    I am hoping to create a datasheet that uses data from a field as its y-axis. At the moment my datasheet looks like this:

    First Name | Last Name

    John | Smith
    Wendy | McDonald

    But I am hoping to change it into this:

    First Name | Last Name | Session 1 | Session 2 | Session 3 | etc.
    John | Smith | Yes | No | Yes
    Wendy | McDonald | Yes | Yes | Yes

    This information would be taken from a query with a structure like this:

    URN - unique ID
    FirstName
    LastName
    SessionID
    CourseID
    SessionDate
    Current - yes/no

    Now the datasheet will be controlled by the CourseID so that it will only show records with that CourseID. Each CourseID will have a number of SessionID's, and each one will have a different date. It's these SessionID's which would make up the column headings after First Name and Last Name. The Current field is the field shown in the example above which will either be Yes or No.

    I have seen that I can do something similar to this using PivotTable but it's not possible to edit the Current field if I was to do that. Does anyone know how else I could design this datasheet? Any help whatsoever would be ENORMOUSLY appreciated.



    Thanks,
    Russ

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Russ,

    where did the requirement come from? You have data that certainly be worked with, but what you've established as your goal here really rubs against the grain of the database object.

    And why a pTable? Would a pChart satisfy the needs as well? Note that a pChart creates crosstab format data automatically, so it would not be difficult to make a chart (or a table for that matter) with First/Last Name as a data series (say, in a legend) as the sessions on the y-axis...

    (do not cross post: http://www.access-programmers.co.uk/...d.php?t=199519)
    Last edited by ajetrumpet; 09-28-2010 at 07:20 PM.

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

Similar Threads

  1. Changing field in Report
    By eww in forum Reports
    Replies: 3
    Last Post: 09-08-2010, 03:04 PM
  2. Adjusting the axis of a graph using VBA
    By Sniper-BoOyA- in forum Programming
    Replies: 0
    Last Post: 08-04-2010, 06:41 AM
  3. Changing value of a field after an event.
    By mikethebass in forum Access
    Replies: 1
    Last Post: 06-16-2010, 04:42 PM
  4. Changing names and labels
    By Geewaagh in forum Reports
    Replies: 29
    Last Post: 04-20-2010, 10:26 PM
  5. changing a records field value
    By tubar in forum Queries
    Replies: 3
    Last Post: 07-06-2009, 07:36 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