AttachUNC Method

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

Hi,

I am upgrading a database from Access 95 to Access 2003 format.
The original developer is long gone, so nobody to ask questions.

He used a Recordset object that contained method named AttachUNC
like this.

Dim DB As Database, RS As Recordset
 
I may be wrong but it looks to me that AttachUNC is simply a Field name in
your Table??? I think in old code, the dot (.) operator can be used with
the Field name to refer to the Field in the Recordset:

If this is the case. Change your code to:

RS.Fields("AttachUNC")

or the abbreviated version using the default properties Fields:

RS!AttachUNC

BTW, for safe coding (since we have Recordset in both DAO and DAO Recordsets
and ADO Recordsets are not compatible), change your decs to:

Dim DB As Database
Dim RS As DAO.Recordset
 

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

Similar Threads


Back
Top