Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is TRANSFORM clause supported by VB?

Status
Not open for further replies.

ormus

Technical User
Apr 4, 2005
2
US

Is the 'TRANSFORM' clause in MS ACCESS's crosstab query recognised by VB?

I have a crosstab query that looks like the following:

TRANSFORM First(Table2.E) AS FirstOfparam
SELECT Table2.A, Table2.B, Table2.C,
FROM Table2
GROUP BY Table2.A, Table2.B, Table2.C
PIVOT Table2.D;

VB doesn't seem to like the TRANSFORM construct!
 
Creating a cross-tab using standard SQL is quite a chore if you have many values to calculate. Transform is a perk of Access, and most client-server systems rely on stored procedures to build the cross-tabs using temp tables.

Excel is often used via automation to create cross-tab data.

Here's a good article that explains the basics of building a cross-tab using SQL:

Generating Database Server-Side Cross Tabulations

VBSlammer
redinvader3walking.gif

"You just have to know which screws to turn." - Professor Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top