I have a crosstab query this is set up as such:
The results are like this
COID Post_Date PT_NUM PT_NAME Trans_Date(s)===>
HH 6/7/10 1234567987 Doe, John RVU$
SE 6/7/10 45698713 Doe, Jane RVu$
TR 6/7/10 00000001 Smith, John
NE 6/7/10 45698732145 Smith, Jane
The Trans_date columns fluxuate based on the date that charges were entered vs date of transaction.
How can I ensure that I capture all fields when i'm trying to export to excel?
PHP:
TRANSFORM Sum([30q_Rehab_RVU_Summary_Step_01].RVU) AS SumOfRVU
SELECT [30q_Rehab_RVU_Summary_Step_01].COID, [30q_Rehab_RVU_Summary_Step_01].Post_Date, [30q_Rehab_RVU_Summary_Step_01].Pt_Num, [30q_Rehab_RVU_Summary_Step_01].Pt_Name, Sum([30q_Rehab_RVU_Summary_Step_01].RVU) AS [Total Of RVU]
FROM 30q_Rehab_RVU_Summary_Step_01
GROUP BY [30q_Rehab_RVU_Summary_Step_01].COID, [30q_Rehab_RVU_Summary_Step_01].Post_Date, [30q_Rehab_RVU_Summary_Step_01].Pt_Num, [30q_Rehab_RVU_Summary_Step_01].Pt_Name
PIVOT Format([Trans_Date],"Short Date");
The results are like this
COID Post_Date PT_NUM PT_NAME Trans_Date(s)===>
HH 6/7/10 1234567987 Doe, John RVU$
SE 6/7/10 45698713 Doe, Jane RVu$
TR 6/7/10 00000001 Smith, John
NE 6/7/10 45698732145 Smith, Jane
The Trans_date columns fluxuate based on the date that charges were entered vs date of transaction.
How can I ensure that I capture all fields when i'm trying to export to excel?