473,769 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error 430, CopyFromRecords et with DAO 3.6

I know there have been plenty of posts online about this issue, but I
have yet to find a solution. I am desperate for a good answer.

The issue is: with newly-built PCs and, as it happens, our web server,
we are getting an Automation error (Error 430) when trying to use DAO
CopyFromRecords et.

It's your typical copyfromrecords et code:
ObjSht.Range(.C ells(2, 1), .Cells(intMaxRo w + 1,
intMaxCol)).Cop yFromRecordset rs

The only thing we have found that will fix it is to uninstall Access +
Office (XP), delete a bunch of DLLs (VBA & DAO), reinstall Office, and
then reinstall Access. This is not an option for us for our web
server...

Does anyone have a better solution than this? It seems like a hack...
especially for functionality designed to automate Office products.

help!

Nov 13 '05 #1
3 9070
I usually just give it the upper left-hand corner of the target range - a
single cell.
That seems to work well...

"Sarah" <sa***********@ gmail.com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.com...
I know there have been plenty of posts online about this issue, but I
have yet to find a solution. I am desperate for a good answer.

The issue is: with newly-built PCs and, as it happens, our web server,
we are getting an Automation error (Error 430) when trying to use DAO
CopyFromRecords et.

It's your typical copyfromrecords et code:
ObjSht.Range(.C ells(2, 1), .Cells(intMaxRo w + 1,
intMaxCol)).Cop yFromRecordset rs

The only thing we have found that will fix it is to uninstall Access +
Office (XP), delete a bunch of DLLs (VBA & DAO), reinstall Office, and
then reinstall Access. This is not an option for us for our web
server...

Does anyone have a better solution than this? It seems like a hack...
especially for functionality designed to automate Office products.

help!

Nov 13 '05 #2
HI - thanks for your reply! I tried changing the reference to the cells
but it didn't work, I get the same error.

Because it's an Automation error, my guess is that is has to do with
the way Access and Excel are communicating, either through DLLs or
registry settings or something. I just have not been able to find
exactly what the issue is or how to fix it.

If anyone has seen a better fix than reinstalling everything (not an
easy option here), or has been able to fix it some other way, please
let me know. Thanks!!

Nov 13 '05 #3
SOLUTION - here's what worked for me (in case this might help others)

I needed to register the dao360.dll. That's it! To register a dll, run
the following command (Start > Run...):
Regsvr32.exe "C:\Program Files\Common Files\Microsoft
Shared\DAO\DAO3 60.DLL"

If it's a different DLL you're having trouble with, replace the path
above with the path to the dll in question.
You don't even need to reboot. Magic.

Nov 13 '05 #4

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

Similar topics

17
27285
by: Ange T | last post by:
Hi there, I'm having pain with the VB behind an Access form. The form is used to create reports in Excel based on the details entered in the form. This has always worked without error on my machine (NT4, Access 2k), however as soon as I attempt to create anything on another machine (NT4, Access 2k) which most users will be working from, I receive an automation error. The problem line with the code is:
1
3564
by: Rick Brown | last post by:
Office97 / Access97 / Win2000 I'm using CopyFromRecordset to load four Excel sheets in the same workbook with approx. 15,000 rows by 36 columns. The process seems slow and I would like to know if there is a faster method? .Range("A2").CopyFromRecordset rsTotalPurchasedParts Thanks for any help, Rick
2
6631
by: toddmoses26 | last post by:
I've got code that builds a DAO recordset from a table, and then pastes the recorset in a specified area in an Excel worksheet. *************************************************** Function AccessToExcelAutomationEP() Dim db As Database Dim rsCMRSummary As DAO.Recordset Dim wbkNew As Excel.Workbook Dim wksNew As Excel.Worksheet
1
1613
by: info | last post by:
I have an Access Application which happily uses CopyFromRecordset to transfer values from an access query via a recordset to an excel spreadsheet, this works on three machines. However, when I try it on a fourth machine (same versions of Excel & Access), no records are transfered (I check that the recordset contains records which it does). Any ideas?
2
8874
by: al | last post by:
Greetings, I'm wondering if Excel object CopyFromRecordset is still supported in VB.NET?? If not, what is the alternative, looping through dataset???? MTIA, Grawsha
2
4704
by: zhollywood | last post by:
OK... I'm not VBA illiterate, but I'm a BA trying to maintain a code-heavy Access 2002 (XP OS) front-end attached to Oracle tables. I have an export to Excel button that worked before the SP2 upgrade, and didn't work afterwards. Research shows me the upgrade caused a problem with a memo field in the export, causing the CopyFromRecordset of object Range error. I found code that is supposed to fix it, but it either doesn't work, or I'm...
7
2540
by: rudevincy | last post by:
Hello I am new to VBA and I am trying to create this program however I get the run time error 3061 Too few parameter expected_1, what does this mean, my code is: Sub Template_Provider_Retail(Spinner As String) Dim rs As Recordset Dim strSQL As String Dim i As Integer Dim IsSmall As Boolean Dim IsInsuf As Boolean
3
2543
by: Tempalli | last post by:
I am exporting the data from ms access to excel where the error displays as Run-time error -2147467259(800004005) Method 'Copyfromrecordset' of object 'Range' faild. Ws.Range("A2").CopyFromRecordset rs One of my Field Name, DATATYPE is set to MEMO I am testing with DATATYPE As TEXT and the Characters within 255 then the report get's downloaded to Excel, if the DATATYPE is set to MEMO and the characters are more than 255 error...
0
9579
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
9422
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
9857
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
8867
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
6662
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
5294
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...
0
5444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3952
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
3
2812
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.