Avatar of Anthony Matovu
Anthony Matovu
Flag for Uganda asked on

cross tab in vb.net on an access database

I want to obtain a cross tab in vb.net on an access database.

I have got this from the internet

I don't understand how it woks.

Help

TRANSFORM Sum(IIf([FieldName]="Qty",[Quantity],[Quantity]*[Order Details]![UnitPrice])) AS TheValue
 SELECT Products.ProductName
 FROM tblXtabColumns, Products INNER JOIN (Orders INNER JOIN [Order Details]
 ON Orders.OrderID = [Order Details].OrderID) ON Products.ProductID = [Order Details].ProductID
 WHERE (Orders.OrderDate Between #1/1/1998# And #3/31/1998#)
 GROUP BY Products.ProductName
 PIVOT [FieldName] & Month([OrderDate]);
Visual Basic.NET.NET ProgrammingMicrosoft Access

Avatar of undefined
Last Comment
Scott McDaniel (EE MVE )

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Scott McDaniel (EE MVE )

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy