borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Data Report in Visula Basic)Next Topic (Data Report) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : Between Dates
Poster Message
hitech_huzefa
Level: Scholar

Registered: 23-06-2005
Posts: 40

icon Between Dates

how can i get information about a customer between two given dates e.g 1-1-2005 to 31-1-2005 in seagate crystal report 8.5

[Edited by hitech_huzefa on 20-07-2005 at 03:13 AM GMT]

19-07-2005 at 04:01 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Between Dates

Use RecordSelectionFormula property of the CRAXDRT.Report object.

____________________________
If you find the answer helpful, please mark this topic as solved.

20-07-2005 at 07:37 PM
View Profile Send Email to User Show All Posts | Quote Reply
hitech_huzefa
Level: Scholar

Registered: 23-06-2005
Posts: 40
icon Re: Between Dates

Hi goran
can u write the exact formula for me.

21-07-2005 at 03:31 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Between Dates

should be something like this

rpt.ReportSelectionFormula="{TableName.DateField}>#1/1/05# And {TableName.DateField}<#31/1/05#"

____________________________
If you find the answer helpful, please mark this topic as solved.

21-07-2005 at 04:25 PM
View Profile Send Email to User Show All Posts | Quote Reply
TJ_01
Level: VB Lord


Registered: 24-08-2005
Posts: 320
icon Re: Between Dates

Just adding to GOran's comments:

sel = "{<Tblname>.<FieldNAme>}in date (" & Text1.Text & ") to date (" & Text2.Text & ")"
CReportDailyApp.SelectionFormula = sel
CReportDailyApp.Action = 1




____________________________
Im JAMES  

24-08-2005 at 08:39 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : Between Dates
Previous Topic (Data Report in Visula Basic)Next Topic (Data Report) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder