I am getting a Run-time error '3078' which states the Microsoft Access database engine cannot find input table or query when I attempt to execute the following code:
Code:
strSq1 = "SELECT * INTO ViewOrderData_tbl FROM Total_NW_tbl WHERE (((Total_NW_tbl.SO_NO)=1492198995))"
CurrentDb.Execute strSql
but when I place the following into the SQL of a query it works just fine:
Code:
SELECT * INTO ViewOrderData_tbl
FROM Total_NW_tbl
WHERE (((Total_NW_tbl.SO_NO)=1492198995));
Why doesn't this work in the first instance?
Thanks