Results 1 to 2 of 2
  1. #1
    lucy1216 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    10

    Calling a common network file from form

    I am trying to call a file which is located on a common network drive from a form. Can someone help?



    I am using Access 2007.

  2. #2
    lucy1216 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    10
    Nevermind...got it:

    Private Sub Command125_Click()

    Dim LWordDoc As String
    Dim oApp As Object
    'Path to the word document
    LWordDoc = "G:\COMMON\Wireless Telecommunications Approval\Resources\Rate Plans.doc"
    If Dir(LWordDoc) = "" Then
    MsgBox "Document not found."
    Else
    'Create an instance of MS Word
    Set oApp = CreateObject(Class:="Word.Application")
    oApp.Visible = True
    'Open the Document
    oApp.Documents.Open FileName:=LWordDoc
    End If
    End Sub

Please reply to this thread with any new information or opinions.

Similar Threads

  1. common form fields
    By soulice in forum Forms
    Replies: 9
    Last Post: 04-05-2012, 02:58 PM
  2. Output tables to an excel file on a network drive
    By GraemeG in forum Import/Export Data
    Replies: 1
    Last Post: 04-01-2011, 03:06 PM
  3. Calling up another form - Not Working
    By Buakaw in forum Forms
    Replies: 7
    Last Post: 02-26-2011, 06:49 AM
  4. Replies: 0
    Last Post: 08-20-2008, 10:14 PM
  5. Replies: 0
    Last Post: 05-24-2006, 09:26 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums