Hi Duane,
Here's a sample of 2 sections of my union query:
UNION ALL SELECT TSL, 'XXX', 'XXX', TPID, null, Co, [Value]/12, [Value]/12,
[Value]/12, [Value]/12, [Value]/12, [Value]/12, [Value]/12, [Value]/12,
[Value]/12, [Value]/12, [Value]/12, [Value]/12, 'E', [Forms]![frm New
Budget]![lstUPVsn], Forms![frm New Budget]![txtCol1], Forms![frm New
Budget]![txtYr], Forms![frm New Budget]![txtUnique]
FROM Projects
UNION ALL SELECT [Budget TPID].TSL, [Budget TPID].Application, [Budget
TPID].[Business Service], [BStoTPID].TPID, [1- CostingData].Project, [Budget
TPID].Co,
Sum([jan]*[charge]*[BStoTPID].[allocation]/100),
Sum([feb]*[charge]*[BStoTPID].[allocation]/100),
Sum([mar]*[charge]*[BStoTPID].[allocation]/100),
Sum([apr]*[charge]*[BStoTPID].[allocation]/100),
Sum([may]*[charge]*[BStoTPID].[allocation]/100),
Sum([jun]*[charge]*[BStoTPID].[allocation]/100),
Sum([jul]*[charge]*[BStoTPID].[allocation]/100),
Sum([aug]*[charge]*[BStoTPID].[allocation]/100),
Sum([sep]*[charge]*[BStoTPID].[allocation]/100),
Sum([oct]*[charge]*[BStoTPID].[allocation]/100),
Sum([nov]*[charge]*[BStoTPID].[allocation]/100),
Sum([dec]*[charge]*[BStoTPID].[allocation]/100),
Classification, [Budget TPID].Year, etc etc
Thanks
Duane Hookom said:
"repeat 12 time" how? Across or down? It seems that you could have easily
provide some sample records and how you would like them to appear in your
query. It would remove much of the guessing.
Duane Hookom
MS Access MVP