HRick
Technical User
- Aug 4, 2004
- 4
I am trying to build a database to keep track of workers hours and prepare multi-year billings to client and am having problem with getting a default value into a subform.
Have 2 tables
tblLaborClass with
ClassNo pk
ClassName
tblLaborRate with
RateID pk
ClassNo
RateStart (date)
RateEnd (date)
Rate
Have a form
LaborClass with
ClassNo pk
ClassName
With a subform
tblLaborRate Subform with
RateStart (date)
RateEnd (date)
Rate
When calling up a LaborClass on the form, would like the tblLaborRate Subform to default to the latest (largest) RateStart date value from the tblLaborRate fields for that LaborClass.
When adding a new record to the tblLaborRate Subform, would like the default values for RateStart and RateEnd to be the latest (largest) date value from the tblLaborRate fields.
Hope this makes sense. Any help would be appreciated.
HRick
Have 2 tables
tblLaborClass with
ClassNo pk
ClassName
tblLaborRate with
RateID pk
ClassNo
RateStart (date)
RateEnd (date)
Rate
Have a form
LaborClass with
ClassNo pk
ClassName
With a subform
tblLaborRate Subform with
RateStart (date)
RateEnd (date)
Rate
When calling up a LaborClass on the form, would like the tblLaborRate Subform to default to the latest (largest) RateStart date value from the tblLaborRate fields for that LaborClass.
When adding a new record to the tblLaborRate Subform, would like the default values for RateStart and RateEnd to be the latest (largest) date value from the tblLaborRate fields.
Hope this makes sense. Any help would be appreciated.
HRick