Welcome to Windows Help!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

UNC question

 
   Windows Help (Home) -> Microsoft Access RSS
Next:  "File In Use" when opening two document..  
Author Message
Golfinray

External


Since: Dec 1, 2008
Posts: 10



(Msg. 1) Posted: Wed Dec 09, 2009 9:25 am
Post subject: UNC question
Archived from groups: microsoft>public>access (more info?)

Is there a way to programatically change the unc path to all linked tables at
once?

 >> Stay informed about: UNC question 
Back to top
Login to vote
Douglas J. Steele

External


Since: Nov 27, 2008
Posts: 61



(Msg. 2) Posted: Wed Dec 09, 2009 12:58 pm
Post subject: Re: UNC question
Archived from groups: per prev. post (more info?)

Only by using VBA to loop through the TableDefs collection and changing each
one that needs to be changed.

 >> Stay informed about: UNC question 
Back to top
Login to vote
Armen Stein

External


Since: Dec 9, 2009
Posts: 2



(Msg. 3) Posted: Wed Dec 09, 2009 1:44 pm
Post subject: Re: UNC question
Archived from groups: per prev. post (more info?)

On Wed, 9 Dec 2009 09:25:01 -0800, golfinray
wrote:

>Is there a way to programatically change the unc path to all linked tables at
>once?

You can use our free J Street Access Relinker. Just browse using
\\server instead of a drive letter to get the UNC patch.

[URL="http://www.jstreettech.com/downloads"]http://www.jstreettech.com/downloads[/URL]

It handles multiple Access back-end databases, ignores ODBC linked
tables, and can automatically and silently relink to back-end
databases in the same folder as the application (handy for work
databases or single-user scenarios). There's a ReadMe table with
instructions.

Armen Stein
Microsoft Access MVP
[URL="http://www.JStreetTech.com"]www.JStreetTech.com[/URL]
 >> Stay informed about: UNC question 
Back to top
Login to vote
Brian

External


Since: Nov 27, 2008
Posts: 8



(Msg. 4) Posted: Wed Dec 09, 2009 3:02 pm
Post subject: RE: UNC question
Archived from groups: per prev. post (more info?)

Here is part of what I use, and it may get you close. My full code also
includes a browse button so the user can browse to the new back end, but here
is the germane portion. If it does not work because I have missed a variable
declaration or something, I may have to just send you the whole form that I
use

Private Sub ButtonReLink_Click()
Dim FilePathData as String
FilePathData = "\\MyServer\MyShare\MyDBFolder\MyDB.mdb" 'path to back end

'open DB connection before re-link to make it faster
Dim dbData As DAO.Database
Set dbData = OpenDatabase(FilePathData)
're-link
Set dbProgram = CurrentDb
txtStatus = SysCmd(acSysCmdInitMeter, "Refreshing Links...",
dbProgram.TableDefs.Count)
For TableCount = 0 To dbProgram.TableDefs.Count - 1
If dbProgram.TableDefs(TableCount).Connect <> "" Then
dbProgram.TableDefs(TableCount).Connect = ";DATABASE=" &
FilePathData & ""
dbProgram.TableDefs(TableCount).RefreshLink
txtStatus = SysCmd(acSysCmdUpdateMeter, TableCount)
End If
Next TableCount
StatusReset
'close DB connection
dbData.Close
Set dbData = Nothing
End Sub
"golfinray" wrote:

> Is there a way to programatically change the unc path to all linked tables at
> once?
> --
> Milton Purdy
> ACCESS
> State of Arkansas
 >> Stay informed about: UNC question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
question - dont know what uou mean

Question about tabs... - I know that Me!TabCtl01.Value provides the page number (index) of the tab that was clicked. I can use a Select Case construct to process activities based on the tab that is active. I have a dialog that (for now) will only work in a "forward&quot...

Question response - I posted a question in the Access forum a few days ago and got an email that there was a response. But the link in the email doesn't work, I can't find my question (let alone any response) by searching, and the Contact Us at the bottom of the forum..

A simple question - Hi everybody, I have created three tables and three forms to populate those tables but when I use those forms to enter data tables dont update immediately ,and I nned to close the data base and open it again to update the recently entered records? I'm...

newbie question - Hi, I've been asked to build an access report that pulls from 3 Access 2007 databases. These are exported from SharePoint lists. The schema for each list is the same - simple timesheet data: Employee name, Manager, Department, Date, time in, time out,..
   Windows Help (Home) -> Microsoft Access All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]