PC Review


Reply
Thread Tools Rate Thread

AttachUNC Method

 
 
Joe
Guest
Posts: n/a
 
      7th Dec 2006
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
 
Reply With Quote
 
 
 
 
Van T. Dinh
Guest
Posts: n/a
 
      7th Dec 2006
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

--
HTH
Van T. Dinh
MVP (Access)



"Joe" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
> .
> .
> Set DB = DBEngine(0)(0)
> Set RS = DB.OpenRecordset("tbl_Attachments")
> .
> If right(CStr(RS.AttachUNC), 1) = "\" Or
> right(CStr(RS.AttachUNC), 1) = "/" Then
> .....
>
>
> My intention is to upgrade the application to use ADO, but I need
> to find an ADO equivalent to this AttachUNC method.
>
> Does anyone know the ADO equivalent for the AttachUNC method?
>
> Joe
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Method "Method 'Open' of object 'Workbooks' failed priustoric@yahoo.com Microsoft Excel Programming 2 2nd Jun 2010 05:28 PM
ObjectDataSource & FormView adding two extra paramaters to Update method giving error non-generic method ... Fred Dag Microsoft ASP .NET 0 18th Sep 2006 11:36 PM
ObjectDataSource & FormView adding two extra paramaters to Update method giving error non-generic method ... Fred Dag Microsoft ADO .NET 0 18th Sep 2006 05:24 AM
Consuming webservices from a smart device project ... <Method>Async() web method calls missing in the reference.cs ... Rodrigus Makon Microsoft Dot NET Compact Framework 5 20th May 2006 09:04 AM
Calling protected method from interface that doesn't include method Jon Shemitz Microsoft C# .NET 2 25th Nov 2003 11:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:32 PM.