Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating or opening Datasource

Status
Not open for further replies.

dellyjm

Programmer
Apr 13, 2000
168
JM
How do i open a ds in word from VB?

Delton.
 
Create a Macro that opens the ds in Word, then call the Macro from VB.

The exact code is all in the help files.

Binky
 
Binky,

This is what i currently have.

Dim wrdApp As Word.Application

Private Sub cmdCreateDoc_Click()

Set wrdApp = New Word.Application

With wrdApp
.Visible = True
.Documents.Add
With .ActiveDocument.MailMerge
.MainDocumentType = wdFormLetters
.OpenDataSource "c:\hrm2001\hrempl00.dbf"
End With
End With
End Sub

It's a foxpro dbf...how do i get it running.

Thanks.

Delton.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top