473,661 Members | 2,480 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.she ets 'for each sheet in excel loop
Debug.Print "Imported sheet is :"; sheet.Name
DoCmd.TransferS preadsheet acImport, acSpreadsheetTy peExcel9, sheet.Name, "OperatorDa ta", True, sheet.Name & "!"
Next

the OPERATORDATA excel file has 10 work sheets.
after importing 6 sheets, this run time error is displayed indicating DOCMD.TransferS preadSheet 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 3812
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 TRANSFERSPREADS HEET 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
1875
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
1820
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 I am trying to build will not open. Can someone help me with this? Thanks for your help! Else 'Update ItemsTable record with new info Debug.Print ("attempting to open recordset") If Me.ItemID <> Null Then
2
12998
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' --no luck. I also did the following. verified that the types of var in the sql statement were the same. verified that the variables held values at the time the statement is
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. The same code works fine in a standalone app. I have inspected System.Runtime.Remoting.dll with ildasm, and I can see the ....Channels.Http namespace there. I verified that the virtual directory is configured to use v2.0.50727 (the error message...
1
2250
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, , "tblStaging", strFilePath & "Temp.xls", True, "" Thanks in advance,
0
1368
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 " REQUESTED OPERATION REQUIRED OLDB SESSION OBJECT , WHICH IS NOT SUPPORTED BY CURRENT PROVIDER , -3709 " MDAC INSTALLED 2.7 VBSCRIPT.DLL 5.6 ARE IN PLACE. at one point of time there are nearly 80 users using this application concurrently . ...
2
12298
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. All of a sudden i start receiving the following error messages countineoully as my appllication polls the database afetr some specified amount odf time. "Error : No. :3709 :The requested operation requires an OLE DB Session object, which is not...
1
2919
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 3709) This error occurs when an ISAM SEEK is being executed and there are no matching values in the index. I do not understand. What does this mean?
17
12744
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! We have a table with 24 fields; 1 AutoNumber; 1 Yes/No; 1 Memo; 2 Currency; 5 Number and the rest Text. The AutoNumber (PK), one Text (No Duplicatess) and one of the Number fields (Duplicates OK) are indexed. There is a form to add records to...
0
8343
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
8855
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...
0
8758
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7364
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...
1
6185
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
5653
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
4346
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
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
1743
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.