Justin.ITPro
Registered User.
- Local time
- Today, 18:05
- Joined
- May 23, 2013
- Messages
- 10
I am having trouble on the Work Orders Form to get the SubTotal to calculate correctly.
The SubTotal Control Source is:
The Form Record Source is:
Can anyone help me understand why my form won't calculate totals?
The SubTotal Control Source is:
Code:
=DLookUp("[Services Total]","[Services Total]","[WOrderID] = '" & [txtWOrderID] & "'")+DLookUp("[Parts Total]","[Parts Total]","[WOrderID] = '" & [txtWOrderID] & "'")
The Form Record Source is:
Code:
SELECT DISTINCT [Work Order].*, [Payment Total].[Payment Total], [Services Total].[Services Total], [Parts Total].[Parts Total] FROM (([Work Order] LEFT JOIN [Parts Total] ON [Work Order].WOrderID = [Parts Total].WOrderID) LEFT JOIN [Payment Total] ON [Work Order].WOrderID = [Payment Total].WOrderID) LEFT JOIN [Services Total] ON [Work Order].WOrderID = [Services Total].WOrderID;
Can anyone help me understand why my form won't calculate totals?