Not a WB problem, but part of an compiled script.
I have a compiled script that creates a 'snapshot' of agent activity from 2 call centers based on querying live MYSQL data, but relating it to local Access lookup tables to eventually create a multi-tabbed workbook.
The centerpiece of the application is SELECTING the MySQL data into a base Access table. If I manually execute a pass through query the data is transferred quickly, but the compiled script which uses ADO cannot execute a pass-through directly, so I use the basic syntax
SELECT [Fields] INTO [Access Table]
FROM [Tables IN "" [ODBC;Driver={MySQL ODBC 5.2 ANSI Driver};Server=;Database=;User=;Password=;Option=3;]
WHERE [];
This, however, runs 10 times slower than using a pass through, although both use the same driver.
So, I thought about reversing and SELECTING directly from MySQL. It appears MySQL does not support SELECT INTO... but INSERT INTO... SELECT - so I tried
INSERT INTO [Access Table] IN '' [MS Access;DATABASE=] SELECT [MySQL Fields] FROM [MySQL Table(s)];
But get an error that the [Access Table] is an undeclared variable.
I have a config file with parameters to determine whether to DROP the base Access file for SELECT INTO, or DELETE rows for INSER INTO; therefore I can test either method.
The exe will eventually go to other users so I would like to nail down and correct the error so I can test which is ultimately a better choice.