L
LMB
Hi Everyone,
Using Access 2000 and can only do fairly simple databases as I have not much
formal programming training or a large amount of time to learn the more
difficult things. I have a couple of tables in my database. One was
designed to be just a look up table and a field on my form uses these fields
to insert the data. I am sure you will need more information so let me know
is easy terms what you need. The problem is that when I enter records into
the Worked area field on my form, my lookup table gets records added to it.
I started out with 9 work areas. I entered the records for one day and now
there are 18 records. Access assigns the new work areas an auto ID number
so the same work area name has 2 ID's and when I add more records there will
be work areas with hundreds of ID's. The funny thing is that my crosstab
query works fine. It reports the number of hours each employee works in a
work area. When I looked at the data from last year, I had 7000 records in
this table when it is only supposed to have 9 and be a look up table.
I have my main table
tblEmployee
EmployeeID-PK
Then my other tables to keep track of hours worked in certain areas. This
helps us to rotate the employees evenly between areas.
tblAreaWorked
AreaWorkedID-PK
EmployeeID-FK
WorkAreaID-FK
WorkAreaDate
WorkAreaHours
tblWorkedArea
WorkedAreaID-PK
WorkedArea
My relationship is a one to many from the tblEmployee (EmployeeID-PK) to the
tblAreaWorked (EmployeeID-FK) and a one to many from the tblWorkedArea
(WorkedAreaID-PK) to the tblAreaWorked (WorkedAreaID-FK)
Thanks,
Linda
Using Access 2000 and can only do fairly simple databases as I have not much
formal programming training or a large amount of time to learn the more
difficult things. I have a couple of tables in my database. One was
designed to be just a look up table and a field on my form uses these fields
to insert the data. I am sure you will need more information so let me know
is easy terms what you need. The problem is that when I enter records into
the Worked area field on my form, my lookup table gets records added to it.
I started out with 9 work areas. I entered the records for one day and now
there are 18 records. Access assigns the new work areas an auto ID number
so the same work area name has 2 ID's and when I add more records there will
be work areas with hundreds of ID's. The funny thing is that my crosstab
query works fine. It reports the number of hours each employee works in a
work area. When I looked at the data from last year, I had 7000 records in
this table when it is only supposed to have 9 and be a look up table.
I have my main table
tblEmployee
EmployeeID-PK
Then my other tables to keep track of hours worked in certain areas. This
helps us to rotate the employees evenly between areas.
tblAreaWorked
AreaWorkedID-PK
EmployeeID-FK
WorkAreaID-FK
WorkAreaDate
WorkAreaHours
tblWorkedArea
WorkedAreaID-PK
WorkedArea
My relationship is a one to many from the tblEmployee (EmployeeID-PK) to the
tblAreaWorked (EmployeeID-FK) and a one to many from the tblWorkedArea
(WorkedAreaID-PK) to the tblAreaWorked (WorkedAreaID-FK)
Thanks,
Linda