W
Wissam
I am new to access and trying to create database for my patients. I have an
access 2000 database that I created using access 2003. In this, there is a
table called PATIENTS that contains fields for basic information about
patients (ID, name, age,...). The database has another table called VISITS
that contains visit lab results for these patients (field examples are ID,
visitdate, cholesterol, glucose,..). A one-to-many relationship exists
between PATIENTS and VISITS based on ID. I created a form called RECORDS that
gets data to Table PATIENTS and has subform that gets data to Table VISITS. I
want to add a command button OpenWord on the form RECORDS that when clicked
would automatically open a word document file called Merged, collect the data
about the patient with the specified ID value on the form, and send that to
the word file with the following format:
*******************************************
Mr. <name e.g. Smith> is an <age e.g. 32) year-old patient who is here for
follow up.
Current and previous lab results as follows:
Date Cholesterol Glucose <below data to be pulled from subform>
1/1/2000 180 95
1/1/2006 220 102
**********************************
Based on examples on this website I was able to do the following steps:
Create the OpenWord command button and have it open the saved word file named
Merged.doc. However, I do not know how to adjust the code so that it would
fill the above record format. Any help in this matter is highly appreciated.
Thanks
access 2000 database that I created using access 2003. In this, there is a
table called PATIENTS that contains fields for basic information about
patients (ID, name, age,...). The database has another table called VISITS
that contains visit lab results for these patients (field examples are ID,
visitdate, cholesterol, glucose,..). A one-to-many relationship exists
between PATIENTS and VISITS based on ID. I created a form called RECORDS that
gets data to Table PATIENTS and has subform that gets data to Table VISITS. I
want to add a command button OpenWord on the form RECORDS that when clicked
would automatically open a word document file called Merged, collect the data
about the patient with the specified ID value on the form, and send that to
the word file with the following format:
*******************************************
Mr. <name e.g. Smith> is an <age e.g. 32) year-old patient who is here for
follow up.
Current and previous lab results as follows:
Date Cholesterol Glucose <below data to be pulled from subform>
1/1/2000 180 95
1/1/2006 220 102
**********************************
Based on examples on this website I was able to do the following steps:
Create the OpenWord command button and have it open the saved word file named
Merged.doc. However, I do not know how to adjust the code so that it would
fill the above record format. Any help in this matter is highly appreciated.
Thanks