This is probably an incredibly newbie-ish question. I just haven't
had the cause to use many subforms before, so I'm pretty sure I just
don't understand it correctly (even after reading up on it).
I have a relationship set up that is used to track the hours an
employee has worked on each project during the week. I'm trying to
set up a Form to allow someone to choose their name and a Period
Ending date (basically, the tblTimeReport table), which when selected
will have the subform allow me to enter information into the Entry
table that pertains to that combination of name and date.
I'm having a nasty time trying to get it all working properly. With
some setups the subform won't allow me to enter data at all, while in
others it seems to ignore the name and date I've inputed. I have a
feeling that TimeReportID being the primary key of the tblTimeReport
table has something to do with it, but I'm not positive. I just can't
get the subform and main form to play nice.
Any help would be greatly appreciated. I've given a description of
the table below. Hopefully that's enough information for you to go
on.
* = Primary Key, + = Foreign Key
tblEmployee
EmployeeID, Autonumber*
LastName, Text
FirstName, Text
....
tblPeriodEnding
PeriodEnding, Date/Time*
tblTimeReport
TimeReportID, AutoNumber*
EmployeeID, Number+ (tblEmployee)
PeriodEnding, Date/Time+ (tblPeriodEndin g)
tblEntry
EntryID, Autonumber*
TimeReportID, Number+ (tblTimeReport)
EmployeeID, Number+ (tblEmployee)
Project, Number+ (tblProject, not show here because it's not
pertinent)
MondayHours, Number
TuesdayHours, Number
WednesdayHours, Number
....
Regards,
MW
had the cause to use many subforms before, so I'm pretty sure I just
don't understand it correctly (even after reading up on it).
I have a relationship set up that is used to track the hours an
employee has worked on each project during the week. I'm trying to
set up a Form to allow someone to choose their name and a Period
Ending date (basically, the tblTimeReport table), which when selected
will have the subform allow me to enter information into the Entry
table that pertains to that combination of name and date.
I'm having a nasty time trying to get it all working properly. With
some setups the subform won't allow me to enter data at all, while in
others it seems to ignore the name and date I've inputed. I have a
feeling that TimeReportID being the primary key of the tblTimeReport
table has something to do with it, but I'm not positive. I just can't
get the subform and main form to play nice.
Any help would be greatly appreciated. I've given a description of
the table below. Hopefully that's enough information for you to go
on.
* = Primary Key, + = Foreign Key
tblEmployee
EmployeeID, Autonumber*
LastName, Text
FirstName, Text
....
tblPeriodEnding
PeriodEnding, Date/Time*
tblTimeReport
TimeReportID, AutoNumber*
EmployeeID, Number+ (tblEmployee)
PeriodEnding, Date/Time+ (tblPeriodEndin g)
tblEntry
EntryID, Autonumber*
TimeReportID, Number+ (tblTimeReport)
EmployeeID, Number+ (tblEmployee)
Project, Number+ (tblProject, not show here because it's not
pertinent)
MondayHours, Number
TuesdayHours, Number
WednesdayHours, Number
....
Regards,
MW
Comment