PC Review


Reply
Thread Tools Rate Thread

Opening on Network Drive

 
 
=?Utf-8?B?TWF0dA==?=
Guest
Posts: n/a
 
      16th Mar 2006
I just split a DB so that users can have the frontend on their desktop. The
DB used to run on the server and Mail Merge documents were located on the
server as well.
I am keeping everything set up the same as before, (where everything worked
fine) except that the front end is now on the desktops.

I'm running the following code to open a Mail Merge Word document on the
server:

Private Sub lblBB_Click()
Dim BBA As String
Dim objWord As Word.Application

Set objWord = CreateObject("Word.Application")

BBA = Application.CurrentProject.Path & "\Documents\Board Briefing\Board
Briefing Agenda.doc"

With objWord
.Visible = True
.Documents.Open (BBA)
.Activate
End With
End Sub

This worked fine when everything was on the server. Now when on the desktop
I have changed the path to both "\\ServerName\\Path\Board Briefing Agenda.doc"
and "L:\Path\Board Briefing Agenda.doc" (L: being the network drive letter
where everything is stored). With both of these methods, the DB is looking
in "C:\Documents and Settings\...\Desktop\(path in code)" Its looking on my
desktop.

How do I tell the DB to change network drives and not look on the C: drive?

Thanks a lot!
-Matt
 
Reply With Quote
 
 
 
 
Duncan Bachen
Guest
Posts: n/a
 
      17th Mar 2006
Matt wrote:
> I just split a DB so that users can have the frontend on their desktop. The
> DB used to run on the server and Mail Merge documents were located on the
> server as well.
> I am keeping everything set up the same as before, (where everything worked
> fine) except that the front end is now on the desktops.
>
> I'm running the following code to open a Mail Merge Word document on the
> server:
>
> Private Sub lblBB_Click()
> Dim BBA As String
> Dim objWord As Word.Application
>
> Set objWord = CreateObject("Word.Application")
>
> BBA = Application.CurrentProject.Path & "\Documents\Board Briefing\Board
> Briefing Agenda.doc"
>
> With objWord
> .Visible = True
> .Documents.Open (BBA)
> .Activate
> End With
> End Sub
>
> This worked fine when everything was on the server. Now when on the desktop
> I have changed the path to both "\\ServerName\\Path\Board Briefing Agenda.doc"
> and "L:\Path\Board Briefing Agenda.doc" (L: being the network drive letter
> where everything is stored). With both of these methods, the DB is looking
> in "C:\Documents and Settings\...\Desktop\(path in code)" Its looking on my
> desktop.
>
> How do I tell the DB to change network drives and not look on the C: drive?
>
> Thanks a lot!
> -Matt


You're changing the entire line, including removal of the part that
references the Application Current Path right?
BBA = "\\ServerName\\Path\Board Briefing Agenda.doc"
or
BBA = "L:\Path\Board Briefing Agenda.doc"


--
-D
Duncan Bachen
Director of I.T., Ole Hansen and Sons, Inc.
 
Reply With Quote
 
=?Utf-8?B?TWF0dA==?=
Guest
Posts: n/a
 
      17th Mar 2006
Duncan,

I didn't realize I had to remove "Application.CurrentProject.Path " for it
to work.

Thanks,

Matt

"Duncan Bachen" wrote:

> Matt wrote:
> > I just split a DB so that users can have the frontend on their desktop. The
> > DB used to run on the server and Mail Merge documents were located on the
> > server as well.
> > I am keeping everything set up the same as before, (where everything worked
> > fine) except that the front end is now on the desktops.
> >
> > I'm running the following code to open a Mail Merge Word document on the
> > server:
> >
> > Private Sub lblBB_Click()
> > Dim BBA As String
> > Dim objWord As Word.Application
> >
> > Set objWord = CreateObject("Word.Application")
> >
> > BBA = Application.CurrentProject.Path & "\Documents\Board Briefing\Board
> > Briefing Agenda.doc"
> >
> > With objWord
> > .Visible = True
> > .Documents.Open (BBA)
> > .Activate
> > End With
> > End Sub
> >
> > This worked fine when everything was on the server. Now when on the desktop
> > I have changed the path to both "\\ServerName\\Path\Board Briefing Agenda.doc"
> > and "L:\Path\Board Briefing Agenda.doc" (L: being the network drive letter
> > where everything is stored). With both of these methods, the DB is looking
> > in "C:\Documents and Settings\...\Desktop\(path in code)" Its looking on my
> > desktop.
> >
> > How do I tell the DB to change network drives and not look on the C: drive?
> >
> > Thanks a lot!
> > -Matt

>
> You're changing the entire line, including removal of the part that
> references the Application Current Path right?
> BBA = "\\ServerName\\Path\Board Briefing Agenda.doc"
> or
> BBA = "L:\Path\Board Briefing Agenda.doc"
>
>
> --
> -D
> Duncan Bachen
> Director of I.T., Ole Hansen and Sons, Inc.
>

 
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
Network Drive Opening Problem =?Utf-8?B?Sm9LaW5n?= Windows XP Networking 0 10th May 2007 10:52 PM
Opening .chm files on network drive Dave Windows XP Help 5 17th Oct 2006 03:12 PM
network drive not opening properly Mizpah Windows XP Networking 0 16th Oct 2006 08:28 PM
Mapped network drive not opening =?Utf-8?B?ampfd29sdmVu?= Windows XP General 9 3rd Feb 2006 09:35 PM
Opening Files on Network Drive JT Windows XP Help 0 23rd Oct 2003 02:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:28 PM.