Re: Access 2000 to Access 2003 conversion
- From: "bignerd" <eric@xxxxxxxxxxxxxxx>
- Date: 14 Sep 2005 19:18:37 -0700
The application flow is:
1. switchboard menu - user selects a form to show teachers who are
absent awaiting a substitute assignment
2. in open absence review screen, the user can double click a row to
launch the assignment fulfillment screen
3. The assignment fulfillment screen shows the absence at the top, and
then available substitutes in a grid in the center. This subform has
an additional subform, and both of these are in "datasheet" mode. The
query that displays records for this form is a multi table join. The
options from the form form are [assign] , [log a call], [close], and
[switch view].
The most "peculiar" feature coded in the form is a "flag column". Not
really knowing access at the time, I wrote dlookup macro for the flag
to return whether or not the "available sub" had been called (the call
being in a call log table for the absence record). IF this "flag" is
set, then the record is to be highlighted so the operator does not call
the same substitute twice.
The expression for that "flag" is:
=Nz(DLookUp("[AbsenceId]","Absence_Call_Log","[AbsenceId]=" &
[Forms]![Fill Absences]!AbsenceID & " AND [SubstituteID]=" &
[Forms]![Fill Absences]!Available_Substitutes.Form!SubstituteID),0)
I was thinking I would remove this dlookup and add a subquery as a
SELECT clause column and see if that helps. I know in Oracle you would
not be able to use two tables to outer join to a single table
(assignments and subs to the call log table). However, I could
probably create intermediate queries and handle this problem.
The query gets kind of complex because it has to:
show subs who
1. are willing to work at this school
2. are certified in the subject, or willing to work in the subject, or
simply a sub
3. will work a full day if it's a full day absence and will work half
days if it is an AM or PM absence
4. Is not already assigned for this day for any non-canceled assignment
5. IS willing to work for the period of all days the teacher absence
entails, factoring out weekends and any holiday dates
6. prioritizing the order of selection by:
a) committed subs for this specific school
b) subs in the "committed" program for the district
c) substitute type (professional, guest, retired)
d) certified/willing status
e) last, first
oops, who has not declined an assignment for this specific day (only
applying to single day absences)
Anyway, I do appreciate all your advice.
Oh, do you recommend any good books on Access 2003? Right now I have
three MS access 2000 books, 2 of which I've never cracked but wanted to
- you know, deadlines, anyway:
Beginning Access 2000 VBA - Wrox
Sybex Access 2000 developer handbook: volume 1
Sybex Access 2000 vba
.
- Follow-Ups:
- Re: Access 2000 to Access 2003 conversion
- From: bignerd
- Re: Access 2000 to Access 2003 conversion
- From: Allen Browne
- Re: Access 2000 to Access 2003 conversion
- References:
- Access 2000 to Access 2003 conversion
- From: bignerd
- Re: Access 2000 to Access 2003 conversion
- From: Allen Browne
- Re: Access 2000 to Access 2003 conversion
- From: bignerd
- Re: Access 2000 to Access 2003 conversion
- From: Allen Browne
- Access 2000 to Access 2003 conversion
- Prev by Date: Microsoft Access was unable to create database window
- Next by Date: Re: Access 2000 to Access 2003 conversion
- Previous by thread: Re: Access 2000 to Access 2003 conversion
- Next by thread: Re: Access 2000 to Access 2003 conversion
- Index(es):
Relevant Pages
|