473,394 Members | 1,697 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Please Review Tables and Help With Query

I'm working on a database to track students in a Title1 program that
provides special tutoring in Reading and Math. There is a set of criteria
that determines which students get placement in the Title1 program. On a
month to month basis, I need to know who is in the program. A student can be
added or dropped at any time. A student can be added, make good progress to
where he is dropped and then if his classroom performance drops again be
added back to the program. This could actually happen a couple of times
during the school year. Here are my tables:
TblStudent
StudentID
etc

TblTitle1Student
Title1StudentID
StudentID
AddDropDate
AddDropID

TblAddDrop
AddDropID
AddDrop

1. Comments in the tables?

2. How do I get a list of the students in the Title1 program on a selected
date?

Thanks,

Frank
Nov 13 '05 #1
2 1123
> StudentID
etc

TblTitle1Student
Title1StudentID
StudentID
AddDropDate
AddDropID

TblAddDrop
AddDropID
AddDrop

1. Comments in the tables?

2. How do I get a list of the students in the Title1 program on a selected
date?

Thanks,

Frank


This is a minor twist on your standard students-classes database.
Student---(1,M)--AddDrop--(M,1)---Section---(M,1)---Course

AddDrop(
AddDropID (if you need the record to be a parent of something else)
StudentID
AddDropDate
AddDrop (A/D) or whatever.

Find out who is in the class on a given date. Use Date math fun. Try
testing your given date for being BETWEEN a student's Add date and his
drop date. (Of course, if the Drop Date is Null, then he is still in
the class.

Also, if you can have a Roster table...
StudentID, SectionID, AddDate, DropDate,...

And then NULL drop date = still enrolled.
then just do the same date math for the rest. Kinda makes sense,
because you can't drop a class you're not attending. and you can only
(theoretically) drop that class once anyway.
Nov 13 '05 #2
To find out if a specific student is enrolled on a particular date, you
could write a function like this:
Public Function IsEnrolled(StudentID as long, WhichDate as date) As
Boolean
Dim IE as Boolean
dim LastEntry as Variant
' Look for the last entry for this student before the date in
question
LastEntry=DMax("AddDropDate","tblTitle1Student","S tudentID=" &
StudentID & _
" AND AddDropDate<#" & WhichDate & "#")
'If there is no entry for the student, he's not enrolled
if not isnull(LastEntry) then
' Look at the AddDropID for that entry, and determine whether
it's an add or a drop
LastEntry=DLookup("AddDropID","tblTitle1Student"," StudentID=" &
StudentID & _
" AND AddDropDate=#" & LastEntry & "#")
If LastEntry=adAdd then _
IE=True
end if
IsEnrolled=IE
End Function

(Note that you'll need to either hard-code whatever value you're using for
adAdd, or provide some sort of global variable and read its value out of
your tblAddDrop table before invoking this function. Reading it from the
table each time you invoke this function would be redundant.)

This would be slow code to use repeatedly in a query, because of all the
domain aggregate functions, but it's a way to approach the problem.

HTH
- Turtle

"Frank" <fr******@earthlink.net> wrote in message
news:Kk*****************@newsread2.news.atl.earthl ink.net...
I'm working on a database to track students in a Title1 program that
provides special tutoring in Reading and Math. There is a set of criteria
that determines which students get placement in the Title1 program. On a
month to month basis, I need to know who is in the program. A student can be added or dropped at any time. A student can be added, make good progress to where he is dropped and then if his classroom performance drops again be
added back to the program. This could actually happen a couple of times
during the school year. Here are my tables:
TblStudent
StudentID
etc

TblTitle1Student
Title1StudentID
StudentID
AddDropDate
AddDropID

TblAddDrop
AddDropID
AddDrop

1. Comments in the tables?

2. How do I get a list of the students in the Title1 program on a selected date?

Thanks,

Frank

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Steve_CA | last post by:
Hello all, I've been recruited to assist in diagnosing and fixing a performance problem on an application we have running on SQL Server 7. The application itself is third party software, so we...
3
by: radioman | last post by:
Hi all, I would appreciate some help please. I just need pointing in the right direction as I am at a loss. Basically I have a form (frmAddMaster) which displays two subforms "Master Stock...
20
by: Jack Schitt | last post by:
I thought I was starting to get a handle on Access, until I tried doing something useful...now I'm stuck. I have a DB with two tables - to keep it simple I'll say that one is an Employee File...
4
by: bhargav.desai | last post by:
Hello Gurus, I need help! I have two table, tblCurrent and tblPrevious. What I want to join the tables, and create a new table that have matching records from both the tables, plus this new...
1
by: Raghu Raman | last post by:
Hi, am using crystal report in my c#.net The report was initially designed with the RDO Connection and uses the stroed proc,This sp requires 4 parameters.In my c# web app , i simply included...
7
by: Juan Romero | last post by:
Hey guys, please HELP I am going nuts with the datagrid control. I cannot get the damn control to refresh. I am using soap to get information from a web service. I have an XML writer output...
22
by: KitKat | last post by:
I need to get this to go to each folders: Cam 1, Cam 2, Cam 4, Cam 6, Cam 7, and Cam 8. Well it does that but it also needs to change the file name to the same folder where the file is being...
17
by: OdAwG | last post by:
Just some questions regarding tables. I am new Access Database and need a little help. I have the following data listed below 01. I have a table called tbl_Customer with the following...
1
PEB
by: PEB | last post by:
POSTING GUIDELINES Please follow these guidelines when posting questions Post your question in a relevant forum Do NOT PM questions to individual experts - This is not fair on them and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.