L
Lostguy
All,
Hopefully, this is the last piece to this database I have been working
on with y'all's help. Here's the setup:
tblEventType (EventTypeIDpk, EventName, EventPeriodicity) (Dental Exam–
every 365 days, Medical exam-every 730 days, Counseling every 182
days, etc.) (All the events)
tblEventWhen (EventWhenIDpk, EventTypeIDfk, EventDate,
EventLocation) (Event X happened on 1-1-09 at Hospital) (where and
when the event happened)
tblEmployee (EmployeeIDpk, LName (Smith, Jones) (Who can attend the
event)
tblEmpEvent: (EmployeeIDfk, EventWhenidfk)(Which employees were at
which events)
1) I am trying to do a report showing (for a given person) what
event is done and what still needs to be done. I can set up the “done”
part but I can’t get the “to-be-done” part because those items do not
have an EventDate. (It just needs to show list of all the possible
events and a date next to the ones that he did. It’s the events
without dates that aren’t showing up.)
2) DateDiff needs a date to do its calculation. With Jones doing
his Medical on 1-1-09 and his dental on 12-2-09 and both of those
dates are in the same “EventDate” column, is there a way to do
“DateDiff the EventDate if the EventType is X”?? (I am trying to use
the EventDate to show when the Event is due based on a periodicity.)
3) Is this set up the best way?
I appreciate all your help!
V/R Lost
Hopefully, this is the last piece to this database I have been working
on with y'all's help. Here's the setup:
tblEventType (EventTypeIDpk, EventName, EventPeriodicity) (Dental Exam–
every 365 days, Medical exam-every 730 days, Counseling every 182
days, etc.) (All the events)
tblEventWhen (EventWhenIDpk, EventTypeIDfk, EventDate,
EventLocation) (Event X happened on 1-1-09 at Hospital) (where and
when the event happened)
tblEmployee (EmployeeIDpk, LName (Smith, Jones) (Who can attend the
event)
tblEmpEvent: (EmployeeIDfk, EventWhenidfk)(Which employees were at
which events)
1) I am trying to do a report showing (for a given person) what
event is done and what still needs to be done. I can set up the “done”
part but I can’t get the “to-be-done” part because those items do not
have an EventDate. (It just needs to show list of all the possible
events and a date next to the ones that he did. It’s the events
without dates that aren’t showing up.)
2) DateDiff needs a date to do its calculation. With Jones doing
his Medical on 1-1-09 and his dental on 12-2-09 and both of those
dates are in the same “EventDate” column, is there a way to do
“DateDiff the EventDate if the EventType is X”?? (I am trying to use
the EventDate to show when the Event is due based on a periodicity.)
3) Is this set up the best way?
I appreciate all your help!
V/R Lost