Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

presence and absence

0 views
Skip to first unread message

Spier2vb

unread,
Dec 24, 2009, 5:54:01 AM12/24/09
to
Hello, I am in the process of creating my database and I was looking for some
guidance. I have created three tables
TblGroups
GroupID PK
GroupName

TblStudent
StudentID PK
Name
GroupID

TblAttendance
Date
Presence Yes/No
Absence Yes/No
StudentID

I need to be able to design form dependent on date field in TblAttendance
In other words i need design form depend on date field and group name compo
box and subform include student id and name and presence and absence, when i
add new record type current date and i selected group show me in subform
student id and name and presence and absence, i tried to do it but i fail
Any help is appreciated.

Thanks,
Spider

PvdG42

unread,
Dec 24, 2009, 12:08:07 PM12/24/09
to

"Spier2vb" <Spie...@discussions.microsoft.com> wrote in message
news:3602BC11-AD1F-4DCD...@microsoft.com...

Before worrying about a subform, take another look at your database design.
Why *two* Yes/No fields in tblAttendance to indicate if a student attended
on a given date? Is not "present" the antithesis of "absent"? IOW, if
Presence is true, Absence is false by definition and vice versa, correct?

Spier2vb

unread,
Jan 5, 2010, 7:04:02 AM1/5/10
to
what your suggests
Please help!

Gina Whipp

unread,
Jan 5, 2010, 9:36:04 AM1/5/10
to
Spier2vb,

Right off the bat I see you have used some Reserved Words as field names,
ie: Date and Name, Access doesn't like that. So you need to fix that,
here's a complete list...

http://allenbrowne.com/AppIssueBadWord.html

For typical naming conventions see...

http://www.granite.ab.ca/access/tablefieldnaming.htm

http://www.regina-whipp.com/index_files/NamingConventions.htm

You have explained that you tried something and it didn't work. You have
shown us your table set up but I'm unclear of how your forms are set up. I
also do not understand what tblGroups is for? Because if the Students are
in the Group and you want to assign values based on what group they are then
you are missing a joiner table...

tblStudentGroups
sgStudentID (FK)
sgGroupID (FK)

Now, did you want the Attendence part to prefill automatically with the
Student, so all you have to do is check boxes?

--
Gina Whipp
2010 Microsoft MVP (Access)

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"Spier2vb" <Spie...@discussions.microsoft.com> wrote in message

news:57296BC0-775A-4586...@microsoft.com...

Spier2vb

unread,
Jan 6, 2010, 6:28:01 AM1/6/10
to
You're awesome i changed tables to be
Classes: ClassID (PK), ClassName, StudentID (FK)
Students: StudentID (PK), FirstName, LastName
Enrollments: ClassID (FK), StudentID (FK)
Attendance: AttendanceID, AttendanceDate, StudentID (FK), Present (yes/no)
Now i would like to be able to keep track of their attendence,
Thanks for your help

And I'm going to want my form based on the Classes table, then have a
subform based on the Attendence table....?? This is where I get lost,
because I want it to display the ClassName (combobox) where I want to display
the classes , and then list all the students that are signed up for that
class, then have a Date field to distinguish between classes, then next to
the each students' name have a checkbox to verify if they were there on that
particular class. Can you help me out with this last little feature of my
database??

"Gina Whipp" wrote:

> .
>

Gina Whipp

unread,
Jan 6, 2010, 10:55:43 AM1/6/10
to
Spier2vb,

How are you assigning Students to Classes now? I would think you want to
join the your Student Classes table to your Attendence table where you could
just then check a box. I also wonder about using the Date to distinguish
between Class. Each Class should really have an ID and that is what you
would use. (You must have more then one Class and any given day?)

--
Gina Whipp
2010 Microsoft MVP (Access)

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"Spier2vb" <Spie...@discussions.microsoft.com> wrote in message

news:7468F0EA-4BA0-4427...@microsoft.com...

0 new messages