W
wrldruler
Hi All,
I am building a Workload Forecasting system. It is similar to a
monthly Time Card except, instead of caring about what they did last
month, I care about what they think they'll be doing within the next
12 rolling months.
It is currently semi-working with a Bound form, but I need to
normalize it and save/read with recordsets. You guys helped me with
normalizing / Recordsets before, but that was on a sub-form that was a
Single Form. I just queried the Recordset, and iterated through and
said this piece of data goes into this box.
But now I am using a sub-form that is Continuous. I can't figure out
how I will get the data into the correct boxes when I am unable to
reference the box by a unique name -- each textbox name will be
repeated for each record in a Continuous form.
Here is what I have:
Main Single Form: Employee ID
Continuous Sub-Form: Billable Time
Continuous Sub-Form: Admin Time
Underneath each, I have a "Task Name" dropdown and 12 textboxes for
their hours.
So my form looks like:
Employee 123
Admin Time Jan Feb Mar ...
*Training 8 0 16
*Vacation 0 8 0
I want my data to look like
* Employee ID
* Task Name
* Task Type (Billable vs Admin)
* Task Start Month
* Task End Month
* Task Hours
I know my main Single form will be filtered by Employee ID. I figured
I will set the RecordSource of each Sub-Form. For ADMIN time I would
say give me all task names & hours for Employee 123 which is of type
"Admin".
But I can't figure out how to get 0 hours to go into the February
Training textbox, and 8 hours to go into the February Vacation
textbox. It's different records, but the textbox will have the same
name for both.
Can you point me in the right direction?
Thanks,
Chris
I am building a Workload Forecasting system. It is similar to a
monthly Time Card except, instead of caring about what they did last
month, I care about what they think they'll be doing within the next
12 rolling months.
It is currently semi-working with a Bound form, but I need to
normalize it and save/read with recordsets. You guys helped me with
normalizing / Recordsets before, but that was on a sub-form that was a
Single Form. I just queried the Recordset, and iterated through and
said this piece of data goes into this box.
But now I am using a sub-form that is Continuous. I can't figure out
how I will get the data into the correct boxes when I am unable to
reference the box by a unique name -- each textbox name will be
repeated for each record in a Continuous form.
Here is what I have:
Main Single Form: Employee ID
Continuous Sub-Form: Billable Time
Continuous Sub-Form: Admin Time
Underneath each, I have a "Task Name" dropdown and 12 textboxes for
their hours.
So my form looks like:
Employee 123
Admin Time Jan Feb Mar ...
*Training 8 0 16
*Vacation 0 8 0
I want my data to look like
* Employee ID
* Task Name
* Task Type (Billable vs Admin)
* Task Start Month
* Task End Month
* Task Hours
I know my main Single form will be filtered by Employee ID. I figured
I will set the RecordSource of each Sub-Form. For ADMIN time I would
say give me all task names & hours for Employee 123 which is of type
"Admin".
But I can't figure out how to get 0 hours to go into the February
Training textbox, and 8 hours to go into the February Vacation
textbox. It's different records, but the textbox will have the same
name for both.
Can you point me in the right direction?
Thanks,
Chris