Hello all!
I have an mdb named data.mdb.
In it, there is a query named MDBox.
If you open this query with MS ACCESS and go into SQL mode, it shows some code.
If I can change this code from VB then my life will be complete.
Here is what it says now:
TRANSFORM Max(Stack.Response) AS MaxOfResponse
SELECT Stack.ID
FROM Stack
WHERE ((Stack.Probe="PRBA0"
)
GROUP BY Stack.ID
PIVOT [Question] & "MD";
~~
I just need to change that first line to read:
TRANSFORM Max(CInt([Response])) AS MaxofResponse
~~
Can I do this from within VB? If so, that would be very sweet... for me.
Thanks,
Brian G.
I have an mdb named data.mdb.
In it, there is a query named MDBox.
If you open this query with MS ACCESS and go into SQL mode, it shows some code.
If I can change this code from VB then my life will be complete.
Here is what it says now:
TRANSFORM Max(Stack.Response) AS MaxOfResponse
SELECT Stack.ID
FROM Stack
WHERE ((Stack.Probe="PRBA0"
GROUP BY Stack.ID
PIVOT [Question] & "MD";
~~
I just need to change that first line to read:
TRANSFORM Max(CInt([Response])) AS MaxofResponse
~~
Can I do this from within VB? If so, that would be very sweet... for me.
Thanks,
Brian G.