PC Review


Reply
Thread Tools Rate Thread

Append Assignments to Results in classroom management database

 
 
=?Utf-8?B?QWx0ZXJuYXRpdmUgVGVhY2hlcg==?=
Guest
Posts: n/a
 
      9th Nov 2006
I am a novice to Access, and I am trying to get the classroom management
database template to do some of the things that I need it to do.

In the assignments subform, when you click on the bottom section, it
automatically adds that assignment to all of the students in the class by
running an append query.

I need it to do something similar in the student assignments subform. That
is, I need it to automatically add all of the assignments for the given class
to that student in the results table. My students work independantly on a
set curriculum, so it is more useful to enter data by student than by
assignment.

I have come pretty close, I think, by imitating the other codes, but I just
don't know the program well enough to know what I'm doing wrong. I can only
get an append query to add the assignments without any regard to what is
already in the results table, creating duplicate assignments for that
student.

I haven't really tried to get it to be automatic yet.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGFtaWFuIFM=?=
Guest
Posts: n/a
 
      9th Nov 2006
Hi Alternative Teacher,

If you post your code here, we'll see if we can spot what you are doing
wrong... You probably just need to limit the ones that get added to those
that don't already have a match, similar to this:

insert into tblStudentAssignment(StudentID, AssignmentID) select
me.lngStudentID as StudentID, AssignmentID from tblAssignment where
AssignmentID not in (select AssignmentID from tblStudentAssignment where
StudentID = me.lngStudentID)

Hope that makes sense...

Damian.

"Alternative Teacher" wrote:

> I am a novice to Access, and I am trying to get the classroom management
> database template to do some of the things that I need it to do.
>
> In the assignments subform, when you click on the bottom section, it
> automatically adds that assignment to all of the students in the class by
> running an append query.
>
> I need it to do something similar in the student assignments subform. That
> is, I need it to automatically add all of the assignments for the given class
> to that student in the results table. My students work independantly on a
> set curriculum, so it is more useful to enter data by student than by
> assignment.
>
> I have come pretty close, I think, by imitating the other codes, but I just
> don't know the program well enough to know what I'm doing wrong. I can only
> get an append query to add the assignments without any regard to what is
> already in the results table, creating duplicate assignments for that
> student.
>
> I haven't really tried to get it to be automatic yet.
>

 
Reply With Quote
 
=?Utf-8?B?QWx0ZXJuYXRpdmUgVGVhY2hlcg==?=
Guest
Posts: n/a
 
      9th Nov 2006
Actually, I was able to take what you had there, modify it a little to match
what I needed, and it worked. Thanks.

"Damian S" wrote:

> Hi Alternative Teacher,
>
> If you post your code here, we'll see if we can spot what you are doing
> wrong... You probably just need to limit the ones that get added to those
> that don't already have a match, similar to this:
>
> insert into tblStudentAssignment(StudentID, AssignmentID) select
> me.lngStudentID as StudentID, AssignmentID from tblAssignment where
> AssignmentID not in (select AssignmentID from tblStudentAssignment where
> StudentID = me.lngStudentID)
>
> Hope that makes sense...
>
> Damian.
>
> "Alternative Teacher" wrote:
>
> > I am a novice to Access, and I am trying to get the classroom management
> > database template to do some of the things that I need it to do.
> >
> > In the assignments subform, when you click on the bottom section, it
> > automatically adds that assignment to all of the students in the class by
> > running an append query.
> >
> > I need it to do something similar in the student assignments subform. That
> > is, I need it to automatically add all of the assignments for the given class
> > to that student in the results table. My students work independantly on a
> > set curriculum, so it is more useful to enter data by student than by
> > assignment.
> >
> > I have come pretty close, I think, by imitating the other codes, but I just
> > don't know the program well enough to know what I'm doing wrong. I can only
> > get an append query to add the assignments without any regard to what is
> > already in the results table, creating duplicate assignments for that
> > student.
> >
> > I haven't really tried to get it to be automatic yet.
> >

 
Reply With Quote
 
=?Utf-8?B?TWFyeQ==?=
Guest
Posts: n/a
 
      1st Mar 2007


"Alternative Teacher" wrote:

> I am a novice to Access, and I am trying to get the classroom management
> database template to do some of the things that I need it to do.
>
> In the assignments subform, when you click on the bottom section, it
> automatically adds that assignment to all of the students in the class by
> running an append query.
>
> I need it to do something similar in the student assignments subform. That
> is, I need it to automatically add all of the assignments for the given class
> to that student in the results table. My students work independantly on a
> set curriculum, so it is more useful to enter data by student than by
> assignment.
>
> I have come pretty close, I think, by imitating the other codes, but I just
> don't know the program well enough to know what I'm doing wrong. I can only
> get an append query to add the assignments without any regard to what is
> already in the results table, creating duplicate assignments for that
> student.
>
> I haven't really tried to get it to be automatic yet.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
classroom management database =?Utf-8?B?Qm9iYnkgU3RhbmxleQ==?= Microsoft Access Getting Started 2 20th May 2007 03:09 PM
Letter Grades in Classroom Management Database =?Utf-8?B?QWx0ZXJuYXRpdmUgVGVhY2hlcg==?= Microsoft Access 1 14th Nov 2006 08:50 PM
How do I add students to the classroom management database? =?Utf-8?B?cmVib3M1NA==?= Microsoft Access 3 6th Oct 2005 06:15 AM
Url for Access 2000 version of the Classroom management Database t =?Utf-8?B?SmFr?= Microsoft Access 1 19th Sep 2005 11:10 PM
How do I add assignments to Classroom Management Access template d =?Utf-8?B?TWlrZSBpbiBWZXJtb250?= Microsoft Access 3 13th Sep 2005 07:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:51 PM.