473,808 Members | 2,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SELECT * INTO LocalTable FROM LinkedExcelShee t; .Execute does notwork; .RunSQL does

I have been trying to create a local table from a linked Excel
Spreadsheet using a simple query string like this:

SELECT * INTO LocalTable FROM LinkedExcelShee t;

If I use CurrentDB.Execu te, I get Error 3078 - The Microsoft Jet
database engine cannot find the input table or query '128'. Make sure
it exists and that its name is spelled correctly.

If I use Docmd.RunSQL it works just fine. Why would that be?

Thanks in advance for educating me.
Nov 11 '08 #1
2 2741
Trish wrote:
I have been trying to create a local table from a linked Excel
Spreadsheet using a simple query string like this:

SELECT * INTO LocalTable FROM LinkedExcelShee t;

If I use CurrentDB.Execu te, I get Error 3078 - The Microsoft Jet
database engine cannot find the input table or query '128'. Make sure
it exists and that its name is spelled correctly.

If I use Docmd.RunSQL it works just fine. Why would that be?

Thanks in advance for educating me.
You might want to look at TransferSpreads heet method.
Nov 11 '08 #2
On Nov 11, 3:05*pm, Salad <o...@vinegar.c omwrote:
Trish wrote:
I have been trying to create a local table from a linked Excel
Spreadsheet using a simple query string like this:
SELECT * INTO LocalTable FROM LinkedExcelShee t;
If I use CurrentDB.Execu te, I get Error 3078 - The Microsoft Jet
database engine cannot find the input table or query '128'. *Make sure
it exists and that its name is spelled correctly.
If I use Docmd.RunSQL it works just fine. *Why would that be?
Thanks in advance for educating me.

You might want to look at TransferSpreads heet method.
Oh yes, that's even better. I had forgotten all about
TransferSpreads heet. But I am still curious as to why .Execute
doesn't work. Is it because the input table is actually a spreadsheet?
Nov 11 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6392
by: Edwinah63 | last post by:
Hi Everyone, All the very best for 2004!! i need urgent help with this problem, the users are about to skin me alive!! we have an access front end with linked to sql server 2k tables. when a user tries to insert a record into one of the tables it
3
6476
by: Tcs | last post by:
My backend is DB2 on our AS/400. While I do HAVE DB2 PE for my PC, I haven't loaded it yet. I'm still using MS Access. And no, I don't believe this is an Access question. (But who knows? I COULD be wrong... :) I've tried the access group...twice...and all I get is "Access doesn't like ".", which I know, or that my query names are too long, as there's a limit to the length of the SQL statement(s). But this works when I don't try to...
3
1888
by: DCM Fan | last post by:
All, A month or so ago I started a thread titled "I was *forced* to use RunSQL." At that time, I said I'd get back to you after trying the dbSeeChanges constant in the Execute method. I was very confident that it was going to solve the problem. It didn't. I've resigned myself to using RunSQL instead of dbs.Execute in this context...first time ever. The bottom line from the JET lovers in here is that
8
11246
by: RC | last post by:
In my Access 2002 form, I have a combo box and on the AfterUpdate event I use DoCmd.RunSQL ("UPDATE .... to update records in a table. When it starts to run I get a message "You are about to update 3 row(s)." Is there a way to prevent the message from popping up?
7
5104
by: Jimmer | last post by:
What's better/ faster/ more efficient. Using Docmd.RunSql or Execute to run sql? When is one better than the other or inappropriate to use? Thanks. jim
2
5709
by: ben | last post by:
I have the following code in a VBA module: DoCmd.RunSql "Update tData Set sd = Log(Strike/Price) where symbol = '" & symbol & "'" This statement worked fine, and was using the built in math Log function. In a separate module, I added the following function:
5
76381
by: Karl Irvin | last post by:
In VBA, how do you see the results of an sql count statement like the following ? Select Count (*) as Total from tblCustomer Result = DoCmd.RunSql("Select Count (*) as Total from tblCustomer") gives an error I need to get the count into a variable.
4
10586
by: The.Daryl.Lu | last post by:
Hi, Have a bit of a problem... I've created a form in Access and will use the form for a user to query a table based on the selected fields. The problem lies in that I was using checkboxes for the fields and noticed that if I don't check a box, then the query will look specifically in the table for where the applicable field is FALSE. This isn't right however and decided that I should use a radio button group so that the user can select...
5
2418
JustJim
by: JustJim | last post by:
I think I've just bumped into the limits of the Having Clause (Help file says 40 expressions, Mary says 99 and I know who I trust). The question is, what happens if you overload the select... into... having clause? Does the whole thing fail? Is the clause truncated somehow? It appears that the target table is being deleted, but then not re-created! Here's what I got so far. Please pardon the long lines, I don't type 'em, I just paste...
0
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10628
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.