473,414 Members | 1,596 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,414 software developers and data experts.

Error 430, CopyFromRecordset 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
CopyFromRecordset.

It's your typical copyfromrecordset code:
ObjSht.Range(.Cells(2, 1), .Cells(intMaxRow + 1,
intMaxCol)).CopyFromRecordset 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 9019
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*********************@z14g2000cwz.googlegro ups.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
CopyFromRecordset.

It's your typical copyfromrecordset code:
ObjSht.Range(.Cells(2, 1), .Cells(intMaxRow + 1,
intMaxCol)).CopyFromRecordset 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\DAO360.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
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...
1
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...
2
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...
1
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...
2
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
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...
7
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...
3
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. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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
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...
0
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...
0
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...
0
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...

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.