boulderman
New member
- Local time
- Today, 09:54
- Joined
- Aug 22, 2011
- Messages
- 2
The closest Argument I can find is OpenQuery which merely opens it.
How do I get a Make Table Query to run, either using VBA, ADO or Macro.
The following is the SQL for one of the Make Tables:
Thanks
How do I get a Make Table Query to run, either using VBA, ADO or Macro.
The following is the SQL for one of the Make Tables:
PHP:
SELECT Details.Field33, Details.Field14, Details.Field15, Details.Field2, Details.Field16, Count(Details.Field26) AS CountOfField26, Count(Details.Field23) AS CountOfField23, Details.Field30, Sum(Round([Field29],2)) AS Expr3, Round(Sum((IIf([Details.field34]>'0',[Details.Field29]-[Details.Field34],0))),2) AS Expr1, Details.Field12, Left(Replace([Field4]," ",""),7) AS Expr2, Details.Field1 INTO [EPLOGP Data C]
FROM Details
GROUP BY Details.Field33, Details.Field14, Details.Field15, Details.Field2, Details.Field16, Details.Field30, Details.Field12, Left(Replace([Field4]," ",""),7), Details.Field1, Details.Field6
HAVING (((Count(Details.Field26)) Is Not Null) AND ((Count(Details.Field23)) Is Not Null) AND ((Details.Field6) Not In ('','0','00','12','38','41','43','42')));
Thanks