A2K to Access XP

P

Paul Doree

Hi,

I've just started using Access XP having previously used A2K. I've tried
importing some modules from an A2K database and they won't compile in Access
XP. One example is a function I have been using for ages to tell if a
record is locked, and one line:

rst.edit

(method or data member not found on the edit)

won't compile. Is there an reference object library issue here? I've tried
to tick the Microsoft Access 8.0 Objet Library but get the message 'Name
conflicts with existing module, project or object library.



Can anyone help?

Cheers

Paul
 
D

Douglas J. Steele

ADO recordsets don't have an Edit method, so you must have been using DAO in
Access 2000. Did you add a reference to DAO in Access 2002?

And if that's the case, then if you're not going to be using ADO, uncheck
the reference to Microsoft ActiveX Data Objects 2.x Library when you add the
reference to the Microsoft DAO 3.6 Object Library.

If you have both references, you'll find that you'll need to "disambiguate"
certain declarations, because objects with the same names exist in the 2
models. For example, to ensure that you get a DAO recordset, you'll need to
use Dim rsCurr as DAO.Recordset (to guarantee an ADO recordset, you'd use
Dim rsCurr As ADODB.Recordset)

The list of objects with the same names in the 2 models is Connection,
Error, Errors, Field, Fields, Parameter, Parameters, Property, Properties
and Recordset

You definitely cannot use object models from other versions of Access. (And,
fwiw, Access 8.0 was Access 97, not Access 2000)
 
R

robson rodrigues

Paul Doree said:
Hi,

I've just started using Access XP having previously used A2K. I've tried
importing some modules from an A2K database and they won't compile in
Access XP. One example is a function I have been using for ages to tell
if a record is locked, and one line:

rst.edit

(method or data member not found on the edit)

won't compile. Is there an reference object library issue here? I've
tried to tick the Microsoft Access 8.0 Objet Library but get the message
'Name conflicts with existing module, project or object library.



Can anyone help?

Cheers

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top