philkryder
asked on
how can I dynamically specify the output location of an MS ACCESS report
I have a system of about 30 programs - ACCDBs.
They all output reports as PDFs to a fixed location:
C:\myapp\output
How can relocate the myapp folder and have the reports output to the new location such as
h:\myhomedirectory\myapp\o utput
thanks
Phil
They all output reports as PDFs to a fixed location:
C:\myapp\output
How can relocate the myapp folder and have the reports output to the new location such as
h:\myhomedirectory\myapp\o
thanks
Phil
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
no points please. Minor correction to mbizup's code:
strOutputPath = DLookup("Data", "tblPaths", "[FieldName] = 'PDFReportPath'")
strOutputPath = DLookup("Data", "tblPaths", "[FieldName] = 'PDFReportPath'")
Dale,
My code was correct... but the explanation may not have been clear. I used that format because of a lack of horizontal space. It might be clearer in a code snippet.
tblPaths contains a single record. The FieldNames in my previous post are the actual columns in that table. So pictured another way, the DATA in tblPaths is:
My code was correct... but the explanation may not have been clear. I used that format because of a lack of horizontal space. It might be clearer in a code snippet.
tblPaths contains a single record. The FieldNames in my previous post are the actual columns in that table. So pictured another way, the DATA in tblPaths is:
PDFReportPath webPath WorkOrderInputFiles ImagesPath
_______________________________________________________________________________________________________________________
h:\myhomedirectory\myapp\output www.mysite.com h:\myhomedirectory\myapp\workorders h:\myhomedirectory\myapp\Images
Miriam,
I get it, your Paths table contains a single record and multiple fields, very "non-normal" of you. I should have figured that out when I saw the "FieldName" header on your list.
;-)
I get it, your Paths table contains a single record and multiple fields, very "non-normal" of you. I should have figured that out when I saw the "FieldName" header on your list.
;-)
Kelvin