Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access Modules daovba ado > Resetting Table...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 1483 of 1609
Post > Topic >>

Resetting Table Links

by =?Utf-8?B?TGFycnlQ?= <LarryP@[EMAIL PROTECTED] > May 28, 2008 at 07:33 AM

I have a procedure that resets table links depending on the site that is 
using the database.  Most links are to Access tables in other databases,
one 
is to an Excel file, one to a .txt file.  For the first two everything
works 
fine, but for the .txt file I'm getting an invalid path error.  Since the 
path IS valid, and the VBA is identical except for the "Text;" type 
declaration, I'm stymied as to why the error.  See partial code below:


            Select Case Right(!TucsonTableLink, 3)
              Case "xls":
                tdfLinked.Connect = "Excel 8.0;HDR=YES;IMEX=2;DATABASE=" &

SessionFilePath & !TucsonTableLink
              Case "txt":
                tdfLinked.Connect = "Text;DATABASE=" & SessionFilePath & 
!TucsonTableLink
              Case "mdb":
                tdfLinked.Connect = ";DATABASE=" & SessionFilePath & 
!TucsonTableLink
            End Select

........

          tdfLinked.RefreshLink
#######THIS IS WHERE THE ERROR OCCURS.....########

At the point where the error occurs, the actual path looks like this:
\\apfs\projs\prodcntl_ops\Entrpris\Data\PRISM\IPT Health Tool Source 
Files\qn.txt

Except for the actual file name, that exact same path is used successfully

to link numerous other tables, so I'm darned if I can see why it blows up
for 
this file.

(By the way, off the subject, what's the type declaration for Excel 2003? 

VBA Help only goes to Excel 8.0 for Excel 97.)
 




 4 Posts in Topic:
Resetting Table Links
=?Utf-8?B?TGFycnlQ?= <  2008-05-28 07:33:01 
Re: Resetting Table Links
"david" <dav  2008-05-29 18:25:28 
Re: Resetting Table Links
=?Utf-8?B?TGFycnlQ?= <  2008-06-04 06:42:04 
Re: Resetting Table Links
"david" <dav  2008-06-05 17:40:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 10:45:34 CST 2008.