How to Place Letter Head Image from path in table in Report's Header section
OK, I have asked this before. But all of the posts have not helped me figure out how to do what I really need to be able to do. May be I just didn't ask my question clearly enough last time. So let try it again.
What I need/want to be able to do is:
I want the Letter Head Image of the medical practice, saved in a TIF format, to be displayed in the Report's Report Header section. The idea being that if the Letter Head changes because a doctor leaves or comes in to the practice
only the Letter Head Image file has to be changed. NOT THE HEADER SECTION OF EVERY REPORT.
Why Tiff? Because it looks better when displayed/printed than a JPG does. May be its the printer, its Window's driver, or ? The graphic image file format shouldn't matter to Access though.
OK, Here are the details.
The application is being developed in Access 2000.
There is a Table, we will call it: Tbl_Customer_Demographics.
The table doesn't have an index because it contains the business' demographic data like name, address, telephone number, etc. It also has an entry that contains the path (as a text string) to where the Letter Head Image file is
stored.
The idea is that not every installation of the Access app will be in C:\Propgram Files\<Access App name>. The Access app could be on a peer-to-peer network or a network with a file server where the Access app is stored on a PC's or a Server's hard drive but run on a user's PC. In either case the path to the Access App and the path to the Letter Head Image file will not be C:\<something>
Now the Report gets its data from a Query against tables in the database. We will call the Query: Qry_Report_Patients_Over_Due_For_Clinic_Visit. In the Query's SELECT section we will get the path to the Letter Head Image file from the table: Tbl_Customer_Demographics entry called: Letter_Head_Image_Path and the data for the report from some other tables in the app's database.
The Query. Well the pertinent parts of it anyway.
SELECT E.Letter_Head_Image_Path, D.PT_DB_Number, C.PT_DB_Number,
D.PT_Name_Last, D.PT_Name_Prefix, D.PT_Name_First, -- etc.--
FROM Tbl_Customer_Demographics AS E, Tbl_PT_Demographics AS D INNER JOIN Tbl_Coumadin_Clinic AS C ON D.PT_DB_Number=C.PT_DB_Number
WHERE (((D.PT_DB_Number)=[Forms]![Frm_ECMR_Main]![TBo_PT_DB_Number]) AND
((C.Clinic_Visit_Date)=(SELECT Max(Clinic_Visit_Date)
FROM Tbl_Coumadin_Clinic WHERE PT_DB_Number = C.PT_DB_Number)));
Now in the Report called: Rpt_Patients_Over_Due_For_Clinic_Visit, in the Report
Header section the actual Letter Head Image should be displayed.
The Conceptual Diagram.
Query Table
Looks up path in Table <--- Path to the Letter Head
Image file
|
|
V
Report
Report Header section
Letter Head Image
Report Details section
Data retreived by Query from other tables
If I put a text box in the Report Header Section when the report is run the path from the table entry is displayed. So the query is doing what it is supposed to do.
However, I haven't been able to figure out how to put an Image "box" in the Report Header section and have the Letter Head Image from the path in the
Tbl_Customer_Demographics to where its actually stored, be displayed when the report is run.
This sort of capability would be very useful for Access developers that can modify what they have developed for use by multiple customers.
Somebody on this forum must have figured out how to do this already.
OK, I have asked this before. But all of the posts have not helped me figure out how to do what I really need to be able to do. May be I just didn't ask my question clearly enough last time. So let try it again.
What I need/want to be able to do is:
I want the Letter Head Image of the medical practice, saved in a TIF format, to be displayed in the Report's Report Header section. The idea being that if the Letter Head changes because a doctor leaves or comes in to the practice
only the Letter Head Image file has to be changed. NOT THE HEADER SECTION OF EVERY REPORT.
Why Tiff? Because it looks better when displayed/printed than a JPG does. May be its the printer, its Window's driver, or ? The graphic image file format shouldn't matter to Access though.
OK, Here are the details.
The application is being developed in Access 2000.
There is a Table, we will call it: Tbl_Customer_Demographics.
The table doesn't have an index because it contains the business' demographic data like name, address, telephone number, etc. It also has an entry that contains the path (as a text string) to where the Letter Head Image file is
stored.
The idea is that not every installation of the Access app will be in C:\Propgram Files\<Access App name>. The Access app could be on a peer-to-peer network or a network with a file server where the Access app is stored on a PC's or a Server's hard drive but run on a user's PC. In either case the path to the Access App and the path to the Letter Head Image file will not be C:\<something>
Now the Report gets its data from a Query against tables in the database. We will call the Query: Qry_Report_Patients_Over_Due_For_Clinic_Visit. In the Query's SELECT section we will get the path to the Letter Head Image file from the table: Tbl_Customer_Demographics entry called: Letter_Head_Image_Path and the data for the report from some other tables in the app's database.
The Query. Well the pertinent parts of it anyway.
SELECT E.Letter_Head_Image_Path, D.PT_DB_Number, C.PT_DB_Number,
D.PT_Name_Last, D.PT_Name_Prefix, D.PT_Name_First, -- etc.--
FROM Tbl_Customer_Demographics AS E, Tbl_PT_Demographics AS D INNER JOIN Tbl_Coumadin_Clinic AS C ON D.PT_DB_Number=C.PT_DB_Number
WHERE (((D.PT_DB_Number)=[Forms]![Frm_ECMR_Main]![TBo_PT_DB_Number]) AND
((C.Clinic_Visit_Date)=(SELECT Max(Clinic_Visit_Date)
FROM Tbl_Coumadin_Clinic WHERE PT_DB_Number = C.PT_DB_Number)));
Now in the Report called: Rpt_Patients_Over_Due_For_Clinic_Visit, in the Report
Header section the actual Letter Head Image should be displayed.
The Conceptual Diagram.
Query Table
Looks up path in Table <--- Path to the Letter Head
Image file
|
|
V
Report
Report Header section
Letter Head Image
Report Details section
Data retreived by Query from other tables
If I put a text box in the Report Header Section when the report is run the path from the table entry is displayed. So the query is doing what it is supposed to do.
However, I haven't been able to figure out how to put an Image "box" in the Report Header section and have the Letter Head Image from the path in the
Tbl_Customer_Demographics to where its actually stored, be displayed when the report is run.
This sort of capability would be very useful for Access developers that can modify what they have developed for use by multiple customers.
Somebody on this forum must have figured out how to do this already.