I created a SQL query with a Group By clause using Toad for SQL Server. It worked great. The query is below. But when I run the query in InfoPath, I get the error message below. Does that mean InfoPath does not support the Group By clause? I could create a view but I need to pass in variables from the form.
The following error occurred:
The query method on the Document object failed.
InfoPath cannot run the specified query.
No query fields have been generated because the specified SQL statement is too complex for InfoPath to parse.
SELECT [LaborSummary].PROGRAM, [LaborSummary].OBS, [LaborSummary].ECAM, SUM ([LaborSummary].SV_HRS) as SV_TOTAL
from [LaborSummary] as [LaborSummary]
where ([LaborSummary].PROGRAM = 'EA18GSDD") and ([LaborSummary].ECAM Like "1%")
group by [LaborSummary].PROGRAM, [LaborSummary].OBS, [LaborSummary].ECAM