Results 1 to 15 of 15

Thread: Sorting for DataReport?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2004
    Posts
    344

    Sorting for DataReport?

    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?


  2. #2

  3. #3
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: Sorting for DataReport?

    Are you using MS access as your backend?


  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2004
    Posts
    344

    Re: Sorting for DataReport?

    Quote Originally Posted by KGComputers
    Are you using MS access as your backend?

    Yes.

  5. #5
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: Sorting for DataReport?

    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...

    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2004
    Posts
    344

    Re: Sorting for DataReport?

    Mind if you can show examples? Thanks alot!


  7. #7
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: Sorting for DataReport?

    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...

    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2004
    Posts
    344

    Re: Sorting for DataReport?

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


  9. #9
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: Sorting for DataReport?

    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?

    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  10. #10

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2004
    Posts
    344

    Re: Sorting for DataReport?

    How do I do that? Please advice!

  11. #11

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2004
    Posts
    344

    Re: Sorting for DataReport?

    Quote Originally Posted by KGComputers
    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...

  12. #12
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: Sorting for DataReport?

    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....

    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  13. #13

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2004
    Posts
    344

    Re: Sorting for DataReport?

    My database is in access 97.

  14. #14
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: Sorting for DataReport?

    Hi,,,


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

    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  15. #15

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2004
    Posts
    344

    Re: Sorting for DataReport?

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width