Hi All,
I have a simple form with 3 subforms. I have a 1 data field on the main form for each subtotal of the subforms as well as an overall total field.
I have the following code in the subtotal fields:
SETot=IIf(DCount("[ID]","qryExpenses")=0,0,DSum("[Reimbursment]","qryExpenses"))
DTETot=IIf(DCount("[ID]","qryTravelExpenses")=0,0,DSum("[Expense]","qryTravelExpenses"))
RTETot=IIf(DCount("[ID]","qryTravelExpensesR")=0,0,DSum("[Amount]","qryTravelExpensesR"))
The total field then contains the following code:
Total=nz([SETot])+nz([DTETot])+nz([RTETot])
The queries all run off data elsewhere on the form, and i have triggered a "Form Refresh" macro on each of the changeable fields of the form, (so for example when changing the start date for the period the form then refreshes and re-runs the queries and updates the forms.
All things work perfectly on our windows XP systems but the rare few Vista operating systems causes these form fields to have errors. Basically the 3 subtotal fields don't appear to refresh when they are supposed to, and the total field shows as "Error"
It is actually a fairly cosmetic thing as the more important reports are generated without error, but it is something i would like to fix anyway, simply to keep the masses happy.
Would be very appreciative of any assistance or idea's on what's happening, or perhaps what's not happening here.
BTW: All have MS Office 2007, None do not have Administrator access. All XP machines work perfectly, all vista machines have these errors.
Cheers
Nathan
I have a simple form with 3 subforms. I have a 1 data field on the main form for each subtotal of the subforms as well as an overall total field.
I have the following code in the subtotal fields:
SETot=IIf(DCount("[ID]","qryExpenses")=0,0,DSum("[Reimbursment]","qryExpenses"))
DTETot=IIf(DCount("[ID]","qryTravelExpenses")=0,0,DSum("[Expense]","qryTravelExpenses"))
RTETot=IIf(DCount("[ID]","qryTravelExpensesR")=0,0,DSum("[Amount]","qryTravelExpensesR"))
The total field then contains the following code:
Total=nz([SETot])+nz([DTETot])+nz([RTETot])
The queries all run off data elsewhere on the form, and i have triggered a "Form Refresh" macro on each of the changeable fields of the form, (so for example when changing the start date for the period the form then refreshes and re-runs the queries and updates the forms.
All things work perfectly on our windows XP systems but the rare few Vista operating systems causes these form fields to have errors. Basically the 3 subtotal fields don't appear to refresh when they are supposed to, and the total field shows as "Error"
It is actually a fairly cosmetic thing as the more important reports are generated without error, but it is something i would like to fix anyway, simply to keep the masses happy.
Would be very appreciative of any assistance or idea's on what's happening, or perhaps what's not happening here.
BTW: All have MS Office 2007, None do not have Administrator access. All XP machines work perfectly, all vista machines have these errors.
Cheers
Nathan