Your table structure is correct -- it may be tempting to make a table
with six fields for the six periods per student, but your method
offers the best flexibility over the long term. However (as you have
discovered), data entry is made more difficult using this "normalized "
structure.
I think that you have two alternatives:
- use a temporary table for data input with six columns for the six
periods, and write some VBA code to transfer from the temporary table
to the permanent (existing) table at some point in time.
Alternatively, you could enter the six grades into unbound textboxes
on the main form, and transfer them to the table using VBA code.
- modify your data-entry procedure. Instead of trying to enter all
periods for a single student, try entering all the students for a
single period. You could build a form/subform in which the period was
selected in the main form, and the subform would show all the
students' grades for that period. You could populate the table with
blank records for each student for the selected period so that you
would not have to manually create each student's record for that
period. This could be done with VBA on a command button, or when you
select the period (say, from a combo box), or when the subform gets
focus.
On Sun, 05 Sep 2004 02:12:14 GMT, "Maria" <ml*******@cson line.net>
wrote:
One of my duties is to record student grades each report period(6). The
tables in the database basically look like:
TblStudent
StudentID
Name
etc
TblStudentGrad e
StudentGrade ID
GradePeriod
StudentID
Grade
The way the tables are, I need to enter the student each grade period. The
students are essentially the same students each period so my thinking is I
should only need to add new students and drop students who have left the
class. If the form was in a grid or matrix, I could have the name in the
first column and successive grade periods in the next six columns. Is there
a way to do this?
Thanks!
Maria
*************** *******
ja************* *@telusTELUS.ne t
remove uppercase letters for true email
http://www.geocities.com/jacksonmacd/ for info on MS Access security