PDA

Click to See Complete Forum and Search --> : Sorting for DataReport?


weisi
Mar 5th, 2006, 08:33 AM
Hi, Im using a datareport for my report. I have the following fields in my report, "index", "name", "age" and "height". What I need is that the user are able to sort the reports, which means that they can select by "index" and "age" from and to. Is there any ways I can be able to do this?

:)

MartinLiss
Mar 5th, 2006, 01:35 PM
Moved.

KGComputers
Mar 5th, 2006, 08:21 PM
Are you using MS access as your backend?

:) :) :)

weisi
Mar 6th, 2006, 03:48 AM
Are you using MS access as your backend?

:) :) :)

Yes. :)

KGComputers
Mar 6th, 2006, 07:46 PM
Hi,

Try creating a queries in your database and apply the criteria for sorting for index and age...Then in your data report, use the queries as your record source...

:) :) :)

weisi
Mar 7th, 2006, 12:20 AM
Mind if you can show examples? Thanks alot!

:)

KGComputers
Mar 7th, 2006, 12:48 AM
Hi....

I assume that you will be producing two reports. First is sorted by index and second is sorted by age..Just simply apply the appropriate sorting criteria in the query design view.The first query (qryindex) refer to the field index then choose the appropriate sorting criteria. Same with the query for the sorting the age..In your data environment simply add the queries/stored procedures...

:) :) :)

weisi
Mar 7th, 2006, 01:08 AM
So I write the queries in my report form? Please show any code on queries if you don't mind.

:)

KGComputers
Mar 7th, 2006, 01:19 AM
HI,

In my case the queries should be created in MS Access database window...I would normally do this to avoid too much coding..Have you tried creating queries in the MS Access database window?

:) :) :)

weisi
Mar 7th, 2006, 02:06 AM
How do I do that? Please advice!

weisi
Mar 7th, 2006, 07:09 PM
HI,

In my case the queries should be created in MS Access database window...I would normally do this to avoid too much coding..Have you tried creating queries in the MS Access database window?

:) :) :)

Please advice... :)

KGComputers
Mar 7th, 2006, 08:12 PM
Hi,,,

So I write the queries in my report form? Please show any code on queries if you don't mind

Queries are normally done in query design view of MS Access.Just simply drag the fields of a particular table to the query design view... I assume you have some background on MS Access...Am I correct on this?

What version of access are you currently working on?

You may try searching on MS access help on how to create queries in ms access....

:) :) :)

weisi
Mar 8th, 2006, 01:51 AM
My database is in access 97.

KGComputers
Mar 8th, 2006, 02:22 AM
Hi,,,


Have you tried making simple data reports in your projects using the data environment designer?

:) :) :)

weisi
Mar 8th, 2006, 02:24 AM
Hi....

I did a couple of report already. But its all standard report whereby I fix the field in the report. eg. index, age and height.