Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm trying to return data from access into excel. I've tried using MS Query, but I find it clunky and difficult to use. I'm trying to use vba to connect to the db and return the data I want that way. All I have to is get my SQL string to be properly formatted to work via the VBA, which is where I'm hitting the hurdles. I know the syntax is not exactly the same, but I'm not getting the proper format. How would the following cross-tab query need to change? TRANSFORM First([100_L1_Index].[100L1DlyIndx]) AS 100L1DlyIndx SELECT [100_L1_Index].Date FROM 100_L1_Index INNER JOIN G_L1 ON [100_L1_Index].Sect = G_L1.L1G GROUP BY [100_L1_Index].Date ORDER BY G_L1!L1G & " - " & G_L1!L1GName PIVOT G_L1!L1G & " - " & G_L1!L1GName; Thank you very much. Kohai |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
syntax error in VBA in query from Access | Excel Discussion (Misc queries) | |||
Syntax to address ThisWorkbook.BuiltinDocumentProperties via Access Automation? | Excel Discussion (Misc queries) | |||
Microsoft][ODBC SQL Server Driver]Syntax error or access violation | Excel Discussion (Misc queries) | |||
Access data -work in Excel- save in Access | Excel Programming | |||
Getting Access Error Messages when running Access through Excel | Excel Programming |