L
Levans digital
bfLeaveDue = DSum("[LeaveDue]", "qryVacation", "VacationID <= " &
[VacationID] )
The above expression works as it supposed to but the I would like to narrow
down the results by adding in a second criteria. thats looks like this.
bfLeaveDue = DSum("[LeaveDue]", "qryVacation", "EmploymentID = " &
[EmploymentID] )
How can I join these togather? I have tried several ways, honestly I dont
know if its even possible.
Basically the completed expression should sum the value of the "leaveDue"
field based on all the "vacationID" that is less than or equal to the current
"vacationID" for the current "EmployeeID. Initially the "bfLeaveDue" will be
populated on the click of a button.
Thanks
[VacationID] )
The above expression works as it supposed to but the I would like to narrow
down the results by adding in a second criteria. thats looks like this.
bfLeaveDue = DSum("[LeaveDue]", "qryVacation", "EmploymentID = " &
[EmploymentID] )
How can I join these togather? I have tried several ways, honestly I dont
know if its even possible.
Basically the completed expression should sum the value of the "leaveDue"
field based on all the "vacationID" that is less than or equal to the current
"vacationID" for the current "EmployeeID. Initially the "bfLeaveDue" will be
populated on the click of a button.
Thanks