Results 1 to 6 of 6
  1. #1
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167

    Append Query - Student Attendance

    Hi,



    I am trying to create a way of recording biweekly attendance for multiple faculty and their several classes of 10 or more students. I was trying to follow an example I found online where the faculty could enter the data through a form and then run an append query (AppendAttendnceQuery) that would take the info (BiweeklyDate, ClassesAttended, ClassesOffered) from the form (StudentAttendanceByFacultyQF) and append it to a historical table (StudentAttendance). Currently when I run the query I am getting 0 records appended or the entire 851 rather than only those associated with that faculty selected on the form. I recognize that there are probably lots of problems with the design of this DB. I am hoping to work to correct these once or at the same time as I get the attendance function working. This is a priority for me right now. My knowledge of code is limited. I hope you can help. DB attached.

    Thanks and take care,

    Daryl
    Attached Files Attached Files

  2. #2
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167
    Ooops! Wrong file attached in original post.
    Attached Files Attached Files

  3. #3
    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,848
    Some of us don't have acc2010 and can not open your accdb.
    You should show us your tables and relationships.
    You might want to post the SQL of the append query.
    You could show us the article you're working from.
    However, until someone with 2010, or you provide more info, any poster would just be guessing.

  4. #4
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167
    Hi,

    Thanks for the reply. Here is the SQL of the query.

    INSERT INTO StudentAttendance ( StudentID, StudentClassID, CourseName, AttendancePeriod, ClassesAttended, ClassesOffered )
    SELECT StudentEnrollmentTable.StudentNumber, StudentEnrollmentTable.ProgressKey, CourseInventory.[Course Title], [Forms]![StudentAttendanceByFacultyQF]![Combo1147] AS AP, [Forms]![StudentAttendanceByFacultyQF]![ClassesAttended] AS CA, [Forms]![StudentAttendanceByFacultyQF]![ClassesOffered] AS CO
    FROM CourseInventory INNER JOIN StudentEnrollmentTable ON CourseInventory.[ClassNbr 2011 (Term 1119)] = StudentEnrollmentTable.ClassNumber
    WHERE ((([Forms]![StudentAttendanceByFacultyQF]![ClassesAttended]) Is Not Null) AND (([Forms]![StudentAttendanceByFacultyQF]![ClassesOffered]) Is Not Null));

    I have also attached a screen shot of the relationships and saved the DB as an .mdb file (if it works to do that).

    Take care,

    Daryl
    Attached Thumbnails Attached Thumbnails Relationships.jpg  
    Attached Files Attached Files

  5. #5
    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,848
    Your database is in accdb format.

    Please see the free data model here
    http://www.databaseanswers.org/data_...ters/index.htm

    and see how he has handled the student roster and attendance (attended_YN)

  6. #6
    Daryl2106 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    167
    Thanks,

    The link was very helpful!

    Take care,

    Daryl

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

Similar Threads

  1. Attendance Log - Missing person(s) Query
    By hinoks in forum Access
    Replies: 6
    Last Post: 02-15-2012, 12:11 PM
  2. Student Payment Query not working
    By jcpty in forum Queries
    Replies: 10
    Last Post: 12-28-2011, 12:22 AM
  3. Replies: 1
    Last Post: 10-06-2011, 08:37 AM
  4. Replies: 7
    Last Post: 07-21-2011, 01:01 PM
  5. Create student teams via query?
    By jmccullough in forum Programming
    Replies: 0
    Last Post: 08-19-2009, 08:21 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