L
livin'life
I have a form with about 40 buttons on it, and each one opens a report based
on a query. What I am trying to do is code the buttons so that there is only
one query and one report (since the format is the same) that they pull from,
as opposed to 40 different reports and queries so I dont have so much to
update when something changes to a report format. The queries are based off
different fields in the table. (cmd1 opens rpt1 based on qry1, cmd2 opens
rpt2 based on qry2, etc.. qry1 is based on fld1 of tbl1, qry2 is based on
fld2 of tbl1, etc. .) I was thinking of something like onclick, the button
would run a query based on the field i tell it, then feed that data into the
report and every button would use the same query and report format. I dont
know if this is possible but any help would be appreciated. Thanks
on a query. What I am trying to do is code the buttons so that there is only
one query and one report (since the format is the same) that they pull from,
as opposed to 40 different reports and queries so I dont have so much to
update when something changes to a report format. The queries are based off
different fields in the table. (cmd1 opens rpt1 based on qry1, cmd2 opens
rpt2 based on qry2, etc.. qry1 is based on fld1 of tbl1, qry2 is based on
fld2 of tbl1, etc. .) I was thinking of something like onclick, the button
would run a query based on the field i tell it, then feed that data into the
report and every button would use the same query and report format. I dont
know if this is possible but any help would be appreciated. Thanks