473,799 Members | 3,167 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 2740
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
6391
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
6473
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
1887
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
11243
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
5102
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
5708
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
76380
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
10585
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
2416
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
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9538
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
10473
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
10219
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
10025
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...
0
9068
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6804
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();...
0
5461
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.