Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using same report

Status
Not open for further replies.

TheCandyman

Technical User
Sep 9, 2002
761
0
0
US
I have a report setup that pulls info from a query. No problems with it. I have another query with the same data, but different filters. How can i change my report to pull from this other query. I don't want to make a new report from scratch, seems like a waste of time.
 
"One" approach is to use the built-in filter option of OpenReport. Review the help for examples. I don't have any on hand.

Another less desirable option may be to change the reports "Record Source" to point to the specific query that you have defined. I have never used this option, but seems like it can be done...

hthw,

Steve Medvid
"IT Consultant & Web Master"

Chester County, PA Residents
Please Show Your Support...
 
Hi,

In the onOpen event of your report..
----------------
if(somecriteria) then
Me.recordSource="qry_1"
else
Me.recordSource="qry_2"
end if
-------------------
where qry_1 and qry_2 are names of queries in your database.

Doing so sets the record source of your report to the particular qry that u want to work with.

Hope this helps.
sync123
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top