Results 1 to 2 of 2

Thread: Word

  1. #1
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    98

    Unanswered: Word

    Hi,

    Is it possible to add a table to a form in which word documents can be added? When clicked on the name of this document it opens it in Word?

    ANy help would be greatly appreciated.

  2. #2
    Join Date
    Nov 2002
    Location
    Belgium
    Posts
    243

    Re: Word

    Originally posted by charlottevk
    Hi,

    Is it possible to add a table to a form in which word documents can be added? When clicked on the name of this document it opens it in Word?

    ANy help would be greatly appreciated.

    Suppose you have a table with the names of the forms.
    When you select a record, you can get the selected form name.

    To open the file use following code:

    Code:
    Public Sun OpenFile (fileName as String)
          Dim myWord As word.Application
        
         Set myWord = New word.Application
         myWord.Documents.Add fileName, False
         myWord.Visible = True
    End Sub
    Be sure you have a reference to Microsoft Word library

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •