Results 1 to 5 of 5

Thread: generate Reports for the particular range of dates

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    12

    generate Reports for the particular range of dates

    hi,
    i am developing a vb application. in that i want to generate Crystal reports for a particular range of dates.

    Eg:

    Starting date month and year in one combo box
    Ending date ,month and year in another combo box..


    which query i've to use to solve this problem... i'll be happy if you give me any solution..

    thanx,
    Ravi.

  2. #2
    Junior Member
    Join Date
    Dec 2005
    Location
    Surat,India
    Posts
    29

    Re: generate Reports for the particular range of dates

    Hi

    Just Build your query as per your requirement and then set it to report's
    sqlQueryString.
    Virendrasinh Narendrasinh Mahida
    ----------------------------------
    There is Never a WRONG time to do the RIGHT Thing

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: generate Reports for the particular range of dates

    Moved to reporting section

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

    Re: generate Reports for the particular range of dates

    Hi.....

    Try Using DTPicker Control....It's in the Microsoft Common Controls-2 6.0
    It will return values for specific dates...

  5. #5
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: generate Reports for the particular range of dates

    The sql for such is usually like the ff...

    VB Code:
    1. "SELECT * FROM Table WHERE fldDate BETWEEN #" & cboDate1 & "# AND #" & cboDate2 & "#"
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

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