Solved

Access 2002 - Error Code 461

Posted on 2004-10-09
2
315 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

820 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