?
Solved

Access 2002 - Error Code 461

Posted on 2004-10-09
2
Medium Priority
?
319 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 375 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

752 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