Solved

Access 2002 - Error Code 461

Posted on 2004-10-09
2
312 Views
Last Modified: 2008-02-26
Converting Access 2000 VBA code to Access 2002 VBA Code

I trying to convert  Access 2000 code to Access 2002 code but I keep getting a complie error on a line of code in Access 2002, specifically, "Method or data module not found - Error 461". The code I'm getting the error on is - rsImport.Edit
Note: The same code is accepted bt the Access 2000 compiler.

Unfortunately I can't see what the problem is as the compiler accepts similar code - eg: rsImport.MoveFirst, rsImport.MoveNext and rsImport.Update.

Do I need to add something to the Reference objects in order for Access 2002 to accept the code? or does Access 2002 handle table updating in a different way to how it was handled in Access 97/2000
0
Comment
Question by:Adlerm
2 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 12269433
Hello Adlerm,

Have you checked your references - are any marked as missing?
Do you still have A2000 - are the references from your A2000 application all present in your A2002 application?

Pete
0
 
LVL 54

Accepted Solution

by:
nico5038 earned 125 total points
ID: 12269637
Guess Pete's right on the money.
Best to define the recordset like:
dim rsImport as DAO.recordset

When there's no reference to DAO the "recordset" won't prompt after typing DAO.
A2002 by defaul assumes you're using ADO

Nic;o)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now