|
-
Mar 17th, 2005, 08:06 PM
#1
Thread Starter
Fanatic Member
Checking a range of dates
hey guyz.. if lets say that i got
hey.. if i got 2 parameters.. one is the starting date. the other parameter is the range that the user selected..
1st param - starting date
2nd param - 6 months down the road
how do i search the report starting from the first date and then search for records 6 months down the road
-
Mar 17th, 2005, 10:24 PM
#2
Re: Checking a range of dates
You can pass two parameters like so...
VB Code:
moReport.ParameterFields.Item(1).ClearCurrentValueAndRange
moReport.ParameterFields.Item(1).AddCurrentValue dStartDate
moReport.ParameterFields.Item(2).ClearCurrentValueAndRange
moReport.ParameterFields.Item(2).AddCurrentValue dEndDate
How are you opening your report and setting the datasource?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Mar 18th, 2005, 01:18 AM
#3
Thread Starter
Fanatic Member
Re: Checking a range of dates
i mean in the crystal report itself
how do i set it to search for a date range
like starting from the beginning of the year to 6 months down the road?
Last edited by ryanlum; Mar 18th, 2005 at 01:22 AM.
-
Mar 18th, 2005, 01:23 AM
#4
Re: Checking a range of dates
Use the record selection formula editor then.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Mar 18th, 2005, 08:01 AM
#5
Thread Starter
Fanatic Member
Re: Checking a range of dates
yiah..
whats the coding for it?
like i start from date x.. then i want to search 6 months later..
how do i set the coding for the 6 months....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|