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

Automation error on reading a recordset

Hello,
I have opened a recordset with rst.open, and then tried to read a
field of the first record with rst("Month").
I get "Automation error". Why? I verified that the recordset is not
empty, because rst.EOF is False.

The funny thing is that when I execute the code for the second time,
it works fine. Sometimes Access is really strange!

Thanks a lot!

Giulio
Nov 12 '05 #1
2 2428
"Giulio Simeone" <vi************@yahoo.it> wrote in message
news:84**************************@posting.google.c om...
Hello,
I have opened a recordset with rst.open, and then tried to read a
field of the first record with rst("Month").
I get "Automation error". Why? I verified that the recordset is not
empty, because rst.EOF is False.

"Month" is a reserved word in Jet. See
http://support.microsoft.com/default...38&Product=acc
Nov 12 '05 #2
Did you issue a .MoveFirst after open and before the read?

King Ron

vi************@yahoo.it (Giulio Simeone) wrote in message news:<84**************************@posting.google. com>...
Hello,
I have opened a recordset with rst.open, and then tried to read a
field of the first record with rst("Month").
I get "Automation error". Why? I verified that the recordset is not
empty, because rst.EOF is False.

The funny thing is that when I execute the code for the second time,
it works fine. Sometimes Access is really strange!

Thanks a lot!

Giulio

Nov 12 '05 #3

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...
2
by: Andante.in.Blue | last post by:
Our Access 97 database is a single-file (non-splitted, pure Access) hosted no a network server, accessed regularly by a handful of users around the office. Until recently (until the Great...
2
by: Giulio Simeone | last post by:
Hello, I have opened a recordset with rst.open, and then tried to read a field of the first record with rst("Month"). I get "Automation error". Why? I verified that the recordset is not empty,...
1
by: Jimmer | last post by:
I've got what should be an easy automation problem, but the solution simply isn't coming to me. I've got several public variables set up for automation as follows: Public gappExcel As...
21
by: Neil | last post by:
Is there a way to trap an error generated in another app that is controlled via automation? I have an Access 2000 app that opens Word 2000 and proceeds to open a series of documents and, in each...
8
by: Steven Scaife | last post by:
Hello I am creating a reporting system using SQL Server 2000 and ASP, I have created 4 pages that display the results i want, however the reports take an average of 20 mins to run and i have...
2
by: charliej2001 | last post by:
Hi all I'm trying to set up an Access database that will be able to import contact information from the lotus notes 6.5 Address book. The idea is that the code runs from access to import all of...
12
by: Tomas | last post by:
Hi, I have worked with VB.NET for half a year (semi-newbie). Currently I am looking around for some books for those that crossed the starting hurdle. There are too many books out there-make...
0
by: =?Utf-8?B?QWJkaHVsIFNhbGVlbQ==?= | last post by:
Hi, I have a recordset containing some data. Using that recordset I want to populate them in a work book in differrent sheets, using client side VBScript. Previously, I used server side...
1
by: Bruce | last post by:
Hello, I know this must be something simple I'm overlooking but I can't get err.raise inside a class to return anything but 440 - automation error. For example, if I create the following test...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.