Re: report OutputTo with parameter
- From: Tom van Stiphout <no.spam.tom7744@xxxxxxx>
- Date: Sat, 31 Mar 2007 09:15:18 -0700
On Sat, 31 Mar 2007 13:25:22 +0100, "Mark" <mreed1975@xxxxxxxxxxxxxx>
wrote:
An elegant workaround is to replace the parameter with an expression
that checks a value in a (possibly hidden) field:
WHERE tbl_Supp_conf_head.Supplier_ID=Forms!SomeForm!Supp_ID
-Tom.
Hi All,
I have hit a stumbling block whilst trying to automate the output a
report where the source for the report is a query that contains a parameter.
The query is as follows:
PARAMETERS Supp_ID Text ( 255 );
SELECT tbl_Supp_conf_head.Date_Created, tbl_Supp_conf_head.Created_By,
tbl_Supp_conf_head.Supplier_ID, tbl_Supp_conf_head.BookRef,
tbl_Supp_conf_head.PreAdID, tbl_Supp_conf_head.Comments,
tbl_Supplier_Questions.Question_text, tbl_Supp_conf_line_Score.Score,
tbl_Supplier_Questions.Weighting
FROM tbl_Supp_conf_head INNER JOIN (tbl_Supp_conf_line_Score INNER JOIN
tbl_Supplier_Questions ON tbl_Supp_conf_line_Score.Question_ID =
tbl_Supplier_Questions.Question_ID) ON tbl_Supp_conf_head.Rec_ID =
tbl_Supp_conf_line_Score.Rec_ID
WHERE (((tbl_Supp_conf_head.Supplier_ID)=[Supp_ID]));
I want to output the report rather than the query as the report passes some
of the formatting to the output.
I have read the help file but it doesn't state if you can pass a parameter
to the report.
expression.OutputTo(ObjectType, ObjectName, OutputFormat, OutputFile,
AutoStart, TemplateFile, Encoding)
Is there some way round this or some other way that I can get code to output
the report into xls with the same formatting??
TIA,
Mark
.
- References:
- report OutputTo with parameter
- From: Mark
- report OutputTo with parameter
- Prev by Date: Re: Delete Record - DAO to ADO
- Next by Date: Re: Cleaning Up Access
- Previous by thread: report OutputTo with parameter
- Index(es):
Relevant Pages
|
|