report of Filtered records

asad.saeed

Sharp Killer
Local time
Tomorrow, 00:53
Joined
Nov 28, 2008
Messages
30
I have an issue about report, I have a tabular form and i want to take report those records which is filtered in this form.

may be its simple but to much important for me..

Friends reply pls.....
 
thanks for your reply, but I have other problem.

I have to use Sort & Filter tab on the each column of record.

please reply how can I generate report of that records.
 
Code:
DoCmd.OpenReport "ReportName", acViewPreview, , Me.Filter
Reports("ReportName").OrderBy = Me.OrderBy
Reports("ReportName").OrderByOn = True
 
this code works on filter records but not not working in sorting!

why you add these two lines?
Reports("ReportName").OrderBy = Me.OrderBy
Reports("ReportName").OrderByOn = True
 
Remove the sorting you set in the report's SORTING & GROUPING.

Those two lines are to apply the sort from the form to the report. Did you use them?
 
I set sorting in Query, bot in report? do I've to remove from, there?
 
Yes, remove the sorting in the query too. But I hope this query is not the query you are using for your form? If it is, just make a copy of it.
 
same query is used in Form and Report.

Your code is working on filter but not in sort, when I sort data and take report the report, the report is not in Ascending order.

I don't know how to upload the file in this forum, otherwise I upload my file for you ease.

Please check where I'm going wrong, many thanks for your previous reply...may GOD bless you.
 
You attached your db with no data. Add some sample data of at least 5 records and re-attach the db.
 
Right click any part of the report (but not any control), click SORTING & GROUPING and it will appear at the bottom of the report. Click the X button on the right hand side of the field that you see in the window to delete it.
 

Users who are viewing this thread

Back
Top Bottom