R
Robbmac
I am attempting to design a customized word 2000 document that does several
things:
1. Upon opening, it populates several demographic fields (like patient
name, address etc.) from a health care Practice Management Software database.
The PMS company has provided a "generic document" with a bunch of fields
embedded in the document that are linked by VBA code to their database. The
idea is that you can create a custom form (say a prescription blank) by
modifying the generic document, deleting the fields you don't want on the
form and adding text, graphics and controls as desired. The new customized
form is then initialized in the PMS and the document is opened by the PMS
referencing a patient. Upon opening an auto open macro initiates VBA code
which populates the fields with data on the patient in question. All of this
works fine to this point.
2. I also want to place some VBA controls (specifically, drop down lists
and combo boxes) in the document. I can place a combo box on the document
from the Controls Toolbar but I can't figure out how to populate the list
with choices.
3. I want to create "primary" combo boxes with lists of categories and I
want
to link those controls to "secondary" controls such that the choice made in
the primary combo box determines the choices that populate the secondary
combo box. I understand that populating the secondary combo boxes would
need to be done with VBA code.
I am somewhat familiar with using VBA in Access and I think I could probably
do steps 2 and 3 above in Access. However, the controls don't seem to work
the same in Word.
Finally, I've been trying to find a basic/introductory VBA reference for
Word 2000
without any success. There are plenty for Access and Excel but I haven't
found any that cover Word VBA applications.
Can anyone point me in the right direction on my project, and does anyone
have any recommendations for published or online resources for using VBA with
Word?
Thanks
things:
1. Upon opening, it populates several demographic fields (like patient
name, address etc.) from a health care Practice Management Software database.
The PMS company has provided a "generic document" with a bunch of fields
embedded in the document that are linked by VBA code to their database. The
idea is that you can create a custom form (say a prescription blank) by
modifying the generic document, deleting the fields you don't want on the
form and adding text, graphics and controls as desired. The new customized
form is then initialized in the PMS and the document is opened by the PMS
referencing a patient. Upon opening an auto open macro initiates VBA code
which populates the fields with data on the patient in question. All of this
works fine to this point.
2. I also want to place some VBA controls (specifically, drop down lists
and combo boxes) in the document. I can place a combo box on the document
from the Controls Toolbar but I can't figure out how to populate the list
with choices.
3. I want to create "primary" combo boxes with lists of categories and I
want
to link those controls to "secondary" controls such that the choice made in
the primary combo box determines the choices that populate the secondary
combo box. I understand that populating the secondary combo boxes would
need to be done with VBA code.
I am somewhat familiar with using VBA in Access and I think I could probably
do steps 2 and 3 above in Access. However, the controls don't seem to work
the same in Word.
Finally, I've been trying to find a basic/introductory VBA reference for
Word 2000
without any success. There are plenty for Access and Excel but I haven't
found any that cover Word VBA applications.
Can anyone point me in the right direction on my project, and does anyone
have any recommendations for published or online resources for using VBA with
Word?
Thanks