P
PJFry
I have a form(fEmployee) with a subform(sfOrder). The subform has a
continuous subform(sfWorked). Each employee has multiple orders they work.
In those multiple orders they have multiple timecard entries. We track the
weekly time entries. In sfWorked, I want the default value to be the one
week after the latest date for that order number. Order numbers are unique.
I am getting wrapped around the axle when I go to reference sfWorked and
sfOrder in the condition of the DMax. In plain English, it would read like
this:
Give me the max date from tWorked where the order number on sfWorked = the
order number on sfOrder.
As expression, I am guessing it would look like this:
DMax("dtmTimeCard","tWorked","Forms!sfOrder!sfWE!lngOrderNumber =
Forms!sfOrder!lngOrderNumber")+7
How do I properly reference the subforms to make this work?
Thanks!
PJ
continuous subform(sfWorked). Each employee has multiple orders they work.
In those multiple orders they have multiple timecard entries. We track the
weekly time entries. In sfWorked, I want the default value to be the one
week after the latest date for that order number. Order numbers are unique.
I am getting wrapped around the axle when I go to reference sfWorked and
sfOrder in the condition of the DMax. In plain English, it would read like
this:
Give me the max date from tWorked where the order number on sfWorked = the
order number on sfOrder.
As expression, I am guessing it would look like this:
DMax("dtmTimeCard","tWorked","Forms!sfOrder!sfWE!lngOrderNumber =
Forms!sfOrder!lngOrderNumber")+7
How do I properly reference the subforms to make this work?
Thanks!
PJ