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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a MS Word document using the fields from the selected record. 1

Status
Not open for further replies.

JimRich

Programmer
Oct 23, 2000
57
US
I need to select a record in my VB database program and click a command button that will open a preformated Word document using previously selected fields. The Word document must be totally editable. The user needs to modify the letter to suit the situation.

Selecting the record and setting up the command button is not the problem. I have tried RTF but it does not seem to allow me to do what I want.

Any help will be appreciated. By the way, I am new to VB, doing most of my programming in FoxPro and Access.
 
You can create an instance of the word program within vb.
dim myword Word
myword = createobject("Word")

you then have access to Word's methods.

You have to reference word for your project first.
It's been awhile since I've done this.
There are some books; Building Business Objects is one. Jim

oracle, vb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top