Results 1 to 3 of 3
  1. #1
    Diane99 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    2

    Data from many records into one Memofield?


    Hi there,
    I have 2 tables:
    tbl_Class with fields ClassID,ClassName,ClassInfo
    tbl_Students with fields StudentID, ClassID, StudentName

    The relationship is one(one class) to many (many students in one class)

    What I need is to get all the names of the students in the ClassInfo Memofield. The names need to be seperated with <p></p> html tags.

    Can this be done with a query?

    Thanks!

    Diane

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    What about 1 student can take many Classes?
    Maybe you have a many to many, that is the norm with Students and Classes, where you have a junction table

    tblStudentClass
    StudentClassId PK
    StudentId FK ( StudentId in tblStudents)
    ClassId FK ( ClassId in tblClasses)

    ClassId would not be in the tblStudents

  3. #3
    Diane99 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    2
    Thanks for your reply orange.No, in this case a student can only be in 1 class.Diane

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

Similar Threads

  1. Cloning data to other existing records.
    By GraemeG in forum Programming
    Replies: 0
    Last Post: 02-16-2011, 11:53 AM
  2. Log Data Changes and Deleted records
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 12-31-2010, 12:41 AM
  3. changing data in many records
    By cforce in forum Programming
    Replies: 1
    Last Post: 07-22-2010, 02:30 PM
  4. Data calculation between records
    By ibergarden in forum Access
    Replies: 3
    Last Post: 04-22-2010, 11:39 AM
  5. How to add text data from records
    By er_manojbisht in forum Reports
    Replies: 3
    Last Post: 03-01-2010, 08:37 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