473,326 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Run-time error '31519'

126 100+
HI!, I am trying to import an excel file to an Access table using the following code, but I am getting "Run-time error '31519':You cannot import this file" error.

Expand|Select|Wrap|Line Numbers
  1. Function Import_ExcelFile()
  2. DoCmd.TransferText acImportDelim, , "ImportedData", "C:\ExportFile\Test_file.xls", True
  3. End Function
I am using Access 2003 database.

Please kindly help me what to do. Any help would be greatly appreciated. Thanks in Advance.
Jul 14 '08 #1
4 10345
ADezii
8,834 Expert 8TB
I think you are looking for the TransferSpreadsheet Method and not TransferText.
Jul 14 '08 #2
JFKJr
126 100+
I think you are looking for the TransferSpreadsheet Method and not TransferText.
Yes, I got it thanks anyway for the reply.

I have successfully imported an excel file into an Access table, but now I am facing another problem i.e., the table has an empty field (field with no data). I am having trouble to delete this empty field using Access VBA code. Do you have any idea about deleting an empty field in an Access table?

Any help would be greatly appreciated. Thanks.
Jul 14 '08 #3
ADezii
8,834 Expert 8TB
Yes, I got it thanks anyway for the reply.

I have successfully imported an excel file into an Access table, but now I am facing another problem i.e., the table has an empty field (field with no data). I am having trouble to delete this empty field using Access VBA code. Do you have any idea about deleting an empty field in an Access table?

Any help would be greatly appreciated. Thanks.
Oddly enough, I just replied to a similar Thread, have a look. BTW, why not simply Delete the Field manually?

http://bytes.com/forum/thread821246.html

P.S. - Kindly keep the Threads separate from each other.
Jul 14 '08 #4
JFKJr
126 100+
Oddly enough, I just replied to a similar Thread, have a look. BTW, why not simply Delete the Field manually?

http://bytes.com/forum/thread821246.html

P.S. - Kindly keep the Threads separate from each other.
Sorry for the two posts, I actually posted the same question twice in my two separate threads. I got your reply from the other post. Thanks!
Jul 14 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: leroybt.rm | last post by:
Can someone tell me how to run a script from a interactive shell I type the following: >>>python filename >>>python filename.py >>>run filename >>>run filename.py >>>/run filename >>>/run...
4
by: Ed | last post by:
Hello, I took a course in asp about 2 years ago and I was practicing with IIS 5.0. Then I put it down for a while. Now trying to get back to it. I can't run asp files from subdirectories of...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
13
by: Bob Day | last post by:
Using vs2003, vb.net I start a thread, giving it a name before start. Code snippet: 'give each thread a unique name (for later identification) Trunk_Thread.Name = "Trunk_0_Thread" ' allow...
19
by: Bryan | last post by:
How can i run a bit of code straight from the IDE? Right now i make a temporary button and put the code behind that, then i run debug mode and click on the button. Is there a way to highlight...
9
by: Brett Wesoloski | last post by:
I am new to VS2005. I changed my program.cs file to be a different form I am working on. But when I go to run the application it still brings up the form that was originally declared as new. ...
7
by: Lee Crabtree | last post by:
I remember when I was first getting into .NET Forms programming that there was a rather emphatic rule about not constructing a form before calling Application.Run with it. So this: ...
8
by: David Thielen | last post by:
Hi; In our setup program how do I determine if I need to run "aspnet_regiis –i" and if so, is there an API I can calll rather than finding that program on the user's disk and calling it? --...
3
by: traceable1 | last post by:
Is there a way I can set up a SQL script to run when the instance starts up? SQL Server 2005 SP2 thanks!
7
by: mxdevit | last post by:
Task: run application from ASP.NET for example, you have a button on ASP.NET page, when press this button - one application is invoked. the code to run application (for example, notepad) is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.