Excel 2007, .XLSX file.
If I issue a Create Table sql command from VBA using an Excel connection string
CREATE TABLE Customers
I end up with a worksheet named "Customers" (instead of Sheet1). Perfect. However, the problem is that I now have a worksheet that I renamed manually (using my keyboard) from "Sheet1" to "Customers" - and currently Vbscript isn't recognizing the table name at all. I've tried
UPDATE Sheet1 SET....
UPDATE [Sheet1$] SET....
UPDATE Customers SET...
UPDATE [Customers$] SET...
This is what I get:
Error: The Microsoft Office Access database engine could not find the object 'Sheet1'. Make sure the object exists and that you spell its name and the path name correctly.
Error: The Microsoft Office Access database engine could not find the object 'Customers'. Make sure the object exists and that you spell its name and the path name correctly.
I even went to Developer > Properties and changed the sheet name in the Properties window to "Customers" but still get the same error...
If I issue a Create Table sql command from VBA using an Excel connection string
CREATE TABLE Customers
I end up with a worksheet named "Customers" (instead of Sheet1). Perfect. However, the problem is that I now have a worksheet that I renamed manually (using my keyboard) from "Sheet1" to "Customers" - and currently Vbscript isn't recognizing the table name at all. I've tried
UPDATE Sheet1 SET....
UPDATE [Sheet1$] SET....
UPDATE Customers SET...
UPDATE [Customers$] SET...
This is what I get:
Error: The Microsoft Office Access database engine could not find the object 'Sheet1'. Make sure the object exists and that you spell its name and the path name correctly.
Error: The Microsoft Office Access database engine could not find the object 'Customers'. Make sure the object exists and that you spell its name and the path name correctly.
I even went to Developer > Properties and changed the sheet name in the Properties window to "Customers" but still get the same error...