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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report displays differently to query

Status
Not open for further replies.

blah999

Programmer
Feb 2, 2004
1
AU
When I perform a query with a WHERE clause I am getting the exact records I want. When I use the same SQL in a report it displays all records and seems to disregard the WHERE clause. Does any one have any ideas on why this might be so?
 
No; shouldnt happen, unless you are rebuilding the recordsource in code on the OnOpen event without the WHERE clause ... check the code behind the form.

Also note that if you have any groups in the report that you are using to produce group headers/footers, then the reports group sorting overrides the ORDER BY associated with the record source.



Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top