M
Mark A. Sam
I constructed an SQL Statement in a string variable, strSQL. When I run the
query I get a type mismatch error, however if I place the value of strSQL in
the QBE Grid, it contructs a valid query which runs fine.
Here is the value of strSQL:
SELECT [Order Entry ST Products].detProdCode, Sum([Order Entry ST
Tasks].prodTaskTime) AS SumTaskTime INTO
EmpTasksSpecialProjectSumTaskTimeTemp FROM (Customers INNER JOIN ([Order
Entry Header] INNER JOIN [Order Entry ST Products] ON [Order Entry
Header].ordID = [Order Entry ST Products].ordID) ON Customers.Custid =
[Order Entry Header].ordCustID) INNER JOIN [Order Entry ST Tasks] ON [Order
Entry ST Products].ordDetID = [Order Entry ST Tasks].ordDetID GROUP BY
[Order Entry ST Products].detProdCode HAVING ([Order Entry ST
Products].detProdCode)='PD';
I contructed strSQL from a query statement which runs fine in my module
using docmd.runsql.
I need to get this worked out as I have a complicated where clause to add
and little time to get this project done.
Thanks for any help.
God Bless,
Mark A. Sam
query I get a type mismatch error, however if I place the value of strSQL in
the QBE Grid, it contructs a valid query which runs fine.
Here is the value of strSQL:
SELECT [Order Entry ST Products].detProdCode, Sum([Order Entry ST
Tasks].prodTaskTime) AS SumTaskTime INTO
EmpTasksSpecialProjectSumTaskTimeTemp FROM (Customers INNER JOIN ([Order
Entry Header] INNER JOIN [Order Entry ST Products] ON [Order Entry
Header].ordID = [Order Entry ST Products].ordID) ON Customers.Custid =
[Order Entry Header].ordCustID) INNER JOIN [Order Entry ST Tasks] ON [Order
Entry ST Products].ordDetID = [Order Entry ST Tasks].ordDetID GROUP BY
[Order Entry ST Products].detProdCode HAVING ([Order Entry ST
Products].detProdCode)='PD';
I contructed strSQL from a query statement which runs fine in my module
using docmd.runsql.
I need to get this worked out as I have a complicated where clause to add
and little time to get this project done.
Thanks for any help.
God Bless,
Mark A. Sam