Hi,
I am not that knowledgeable with Cross Tab queries, but I have a couple that I created in Access. I am now writing a VB program and want to know how I could write an equivalent cross tab query SQL, in my VB program and insert this into a table in a Access database. Here is my query in Access:
TRANSFORM IIf(IsNull(First(tblMasterMerStsts.Count)),"-",First(tblMasterMerStsts.Count))
SELECT tblMasterMerStsts.Report_ID
FROM tblMasterMerStsts
GROUP BY tblMasterMerStsts.Report_ID
PIVOT tblMasterMerStsts.Date;
But I do not think you can just put this in as a SQL statement in VB.
Is there a way?
Thank you
I am not that knowledgeable with Cross Tab queries, but I have a couple that I created in Access. I am now writing a VB program and want to know how I could write an equivalent cross tab query SQL, in my VB program and insert this into a table in a Access database. Here is my query in Access:
TRANSFORM IIf(IsNull(First(tblMasterMerStsts.Count)),"-",First(tblMasterMerStsts.Count))
SELECT tblMasterMerStsts.Report_ID
FROM tblMasterMerStsts
GROUP BY tblMasterMerStsts.Report_ID
PIVOT tblMasterMerStsts.Date;
But I do not think you can just put this in as a SQL statement in VB.
Is there a way?
Thank you