Results 1 to 3 of 3
  1. #1
    danaraincloud is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    1

    Question creating a dynamic agenda in a report

    I have a database of event attendees. They are registered for 1-6 events over the course of a day. I would like to create a report that will generate their personalized schedule so it looks something like this:



    Time 1 - Session 1
    Time 2 - Session 2
    Time 3 - Session 3A
    Time 4 - Session 4B
    Time 5 - Session 5
    Time 6 - Session 6

    Easy enough.

    My problem lies in generating the report for those people who are not attending all sessions. I want to collapse the white space left behind by empty fields and I am drawing a complete blank. If the person is only attending Sessions 2 and 5, I want those to appear in the 1 & 2 position with the white space below.

    I feel like there's one way I could do it by layering fields and an awful lot of conditional formatting... if there's an easier way to do it, I'd very much appreciate someone letting me know.

    THANKS!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    I would build a 'report' macro that posts the sessions to a reporting table. say tRptSched
    It would
    clear the table
    append all persons and their sessions.
    then open the report.

    the report would show that persons sessions, since Bob only has session 5, it would only show that.

    (if you have the skills , you dont need the report table, you can just use queries, w/o extra tables.)

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    You have a field for each session? This is part of the issue - non-normalized data structure.

    Try setting the textboxes Height property to 0 then positioning them against each other. Set the CanGrow and CanShrink properties to Yes. On second thought, doubt that will help because even though you have the textboxes arranged vertically, they are all still one record. The longest value in any textbox controls the height of the record/row.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Creating a Form for Dynamic Table
    By Ashe in forum Forms
    Replies: 7
    Last Post: 02-25-2014, 12:10 PM
  2. Creating dynamic drop down list
    By SltPhx in forum Access
    Replies: 3
    Last Post: 07-29-2013, 10:17 AM
  3. Creating a Dynamic Query
    By gdshih in forum Queries
    Replies: 4
    Last Post: 11-28-2011, 02:13 PM
  4. Creating dynamic hyperlinks
    By mattellenburg in forum Access
    Replies: 1
    Last Post: 11-28-2011, 10:31 AM
  5. Creating a Dynamic Query
    By JackRush in forum Queries
    Replies: 2
    Last Post: 06-26-2011, 10: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