473,508 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

3709 Runtime Error

repath
14 New Member
I tried the code with automation:

For Each sheet In objWorkBook.sheets 'for each sheet in excel loop
Debug.Print "Imported sheet is :"; sheet.Name
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, sheet.Name, "OperatorData", True, sheet.Name & "!"
Next

the OPERATORDATA excel file has 10 work sheets.
after importing 6 sheets, this run time error is displayed indicating DOCMD.TransferSpreadSheet line

I tried to import through GetExternalData/Import from Access File Menu.

this displays an error message without help button on the message box and the message reads like.... SUBSCRIPT OUT OF RANGE.

Can any one help me please.

With regards
Repath.
Dec 21 '09 #1
2 3792
ChipR
1,287 Recognized Expert Top Contributor
If you are importing columns into specific fields, you should double check to make sure that they match.
Dec 23 '09 #2
repath
14 New Member
I believe, tables will automatically be created in Access Database when you are importing any sheet from Excel based on the parameters given in the TRANSFERSPREADSHEET function.

So it is not the case with the table structure.

I even tried with Import External Data from File Menu in Ms.Access and the error is SUBSCRIPT OUT OF RANGE

Why does this happen...?

Any prompt answer will be appreciated.
Jan 5 '10 #3

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

Similar topics

0
1857
by: MFS 43 | last post by:
Have two tables with identical fields (access 2002). Trying to combine DATA. I created two recordsets based on these two tables. then I used code that looks like this.: with rstmain
3
1808
by: JB | last post by:
Hello, I am trying to write a query that selects a row from another table with a field that matches the Me!RecordingID that's on the form. For some reason my query is not working and the recordset...
2
12983
by: JB | last post by:
Thanks to both of you for responding. To Pieter: The second asterisk actually isn't there. The original code reads just as you suggested it should. To Phil: I tried changing the 'And' to 'and'...
0
755
by: Kirk | last post by:
I'm trying to use a Web Service to be a Remoting client of an existing ..NET 2.0 server. But I get the following error when I try to use System.Runtime.Remoting.Channels.Http in my WebService. ...
1
2246
by: SarahK | last post by:
All, I am trying to import a table from Excel, but I get the 3709 error, search key not found. Any ideas? My TransferSpreadsheet method statement is: DoCmd.TransferSpreadsheet acImport, ,...
0
1361
by: IBB | last post by:
Hi W'e are using a vb sql database , and have set a timer for 45 seconds . this timer is to call a stored procedure , to update the information in database . This error which flashes is "...
2
12287
by: =?Utf-8?B?U3VuaWwgUGFuZGl0YQ==?= | last post by:
Hi All, I have created a VB.Net application that used classic ADO to access the oracle database. I have mentained a persistant connection in it. When i start the application and it works fine....
1
2901
by: ladybug via AccessMonster.com | last post by:
I am trying to change the data in a text field in a table. I can change this field in other entries, but one specific one I receive this error: The search key was not found in any record. (Error...
17
12703
by: mandanarchi | last post by:
Access 2003; PC with Windows XP; SBS 2003 I tried searching the forums but it came up with a blank page. I searched Google and found an answer; but the 'problem' doesn't relate to our situation!...
0
7231
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,...
0
7336
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,...
0
7401
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5059
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...
0
4720
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...
0
3211
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...
0
1568
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 ...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
432
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...

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.