Results 1 to 2 of 2
  1. #1
    deshamilton is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Posts
    1

    Avoiding duplicate rows in a report

    I have set up a database with 3 tables:

    student(student code, forename, surname, year)


    student and group (student code, teaching group)
    lesson(date, lesson code, staff, location, teaching group)

    It is possible for more than one member of staff to be allocated to the same lesson (ie shared teaching)

    I want to print timetables for students and for staff. The staff ones aren't a problem but the way the database is structured, a student has two (or more) lines for any lesson where there is two (or more) staff. Is it possible to have the student timetable report configured to list the staff if there is more than one rather than printing a line for each one? Or is there another solution?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,972
    Options:

    1. report Grouping & Sorting

    2. subreport

    3. VBA code to concatenate the staff into a single string http://allenbrowne.com/func-concat.html
    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. Subtotals on Hidden Duplicate Rows in Report
    By AKWells in forum Reports
    Replies: 2
    Last Post: 04-28-2014, 08:03 AM
  2. Combining Rows with Duplicate Values
    By julia.ranauro in forum Access
    Replies: 8
    Last Post: 06-18-2013, 07:54 AM
  3. Avoiding entering duplicate values
    By djclntn in forum Forms
    Replies: 1
    Last Post: 01-25-2013, 11:51 AM
  4. ummmm... finding duplicate rows
    By mcchung52 in forum Queries
    Replies: 3
    Last Post: 02-07-2012, 03:02 AM
  5. Selcting max value with all duplicate rows
    By HectorH in forum Queries
    Replies: 9
    Last Post: 07-21-2011, 12:17 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