C
cpocpo
Hello all!
Still having a fundamental problem making my database work. (I
received alot of help in earlier posts, and this is the last thing to
make this thing workable.)
Basically, I have 40 employees, some military, some civilian. As well
as tracking their basic personal information (SSN, address, spouse
name, etc.), I am keeping track of their "recurring items" (birthdays,
anniversaries, medical exams, dental exams, EEO training, HR training,
etc.).Some of these are every 1 year, some are every 3 years, etc.
When the database is opened, a report should pop up with "The
following events are due this month: Mr. X dental exam due ________,
Mrs. J has a birthday on _______. Also, the following items are
overdue: Mr. P's dental exam was due on _________."
So, each employee can have many different "events", each having their
own date of accomplishment.
Setup:
1) tblEmployee with 3 fields: EmployeeID (auonumber, PK), LName
(text),
and FName (text).
2) tblEventType with 2 fields: EventType (Text, PK) and Periodicity
(Number)
3) tblEvents with 3 fields: EmployeeID (number), EventType (Text),
and
EventDate (Date/Time). No PK assigned for this table.
Relationships:
1) EmployeeID (from tblEmployee) to EmployeeID (from tblEvents)
one-to-many, referential integrity, no cascades, join type 1
2) EventType (from tblEventType) to EventType (from tblEvents)
one-to-many, referential integrity, no cascades, join type 1
Created a form with the wizard pulling LName and FName from the first
table,
EventType from the second table, and EventDate from the third. This
gives me a form with the FName and LName and a subform with the other
two.
Now, I can get the name to update but when I enter the date in the
subform,
I get an error "ding" with every keystroke. I also get the "Changes
not
successful because they would create duplicate values in the index"
error
and the "field cannot be updated" error. There is also errors with
letting
me enter an eventtype..
It seems that the tables aren't "talking" to each other. And this
probably has to work for the popup reminder report to work (which I
will need help with also.)
??
Lost for sure Guy
Still having a fundamental problem making my database work. (I
received alot of help in earlier posts, and this is the last thing to
make this thing workable.)
Basically, I have 40 employees, some military, some civilian. As well
as tracking their basic personal information (SSN, address, spouse
name, etc.), I am keeping track of their "recurring items" (birthdays,
anniversaries, medical exams, dental exams, EEO training, HR training,
etc.).Some of these are every 1 year, some are every 3 years, etc.
When the database is opened, a report should pop up with "The
following events are due this month: Mr. X dental exam due ________,
Mrs. J has a birthday on _______. Also, the following items are
overdue: Mr. P's dental exam was due on _________."
So, each employee can have many different "events", each having their
own date of accomplishment.
Setup:
1) tblEmployee with 3 fields: EmployeeID (auonumber, PK), LName
(text),
and FName (text).
2) tblEventType with 2 fields: EventType (Text, PK) and Periodicity
(Number)
3) tblEvents with 3 fields: EmployeeID (number), EventType (Text),
and
EventDate (Date/Time). No PK assigned for this table.
Relationships:
1) EmployeeID (from tblEmployee) to EmployeeID (from tblEvents)
one-to-many, referential integrity, no cascades, join type 1
2) EventType (from tblEventType) to EventType (from tblEvents)
one-to-many, referential integrity, no cascades, join type 1
Created a form with the wizard pulling LName and FName from the first
table,
EventType from the second table, and EventDate from the third. This
gives me a form with the FName and LName and a subform with the other
two.
Now, I can get the name to update but when I enter the date in the
subform,
I get an error "ding" with every keystroke. I also get the "Changes
not
successful because they would create duplicate values in the index"
error
and the "field cannot be updated" error. There is also errors with
letting
me enter an eventtype..
It seems that the tables aren't "talking" to each other. And this
probably has to work for the popup reminder report to work (which I
will need help with also.)
??
Lost for sure Guy