lmonaghan
Board Regular
- Joined
- Nov 27, 2004
- Messages
- 84
I searched the forums and I tried the advice from one string which did not work like a charm. Please help in assigning the problem with the following statement:
Thanks in advance for your help!
Code:
SQL = "TRANSFORM SUM(LOAD.DITMIL) AS SUMOFDITMIL " _
& "SELECT LOAD.DIUNIT, LOADEXT.DIDV# " _
& "FROM I93FILE.LOAD, I93FILE.LOADEXT " _
& "WHERE LOAD.DIODR# = LOADEXT.DEODR# AND LOAD.DIDISP = LOADEXT.DEDISP " _
& " AND LOAD.DIDATE BETWEEN 85261 AND 85267 " _
& " AND LOAD.DIMULT<>'S' " _
& " AND LOAD.DICONT IN ('0','1') " _
& " AND LOADEXT.DIDV#<>'LOG' " _
& "GROUP BY LOAD.DIUNIT, LOADEXT.DIDV# " _
& "ORDER BY LOAD.DIUNIT " _
& "PIVOT LOAD.DIDATE; "
Thanks in advance for your help!