|
-
Aug 6th, 2003, 09:27 AM
#1
Thread Starter
Hyperactive Member
Crystal report - between two dates
I am using VB6 with crystal reports 9.
I have this SQL statement as a command in crystal reports.
SELECT DISTINCT Samplepoint, TestType, SUM(Result)
FROM Daily WHERE Result <> 'none'
GROUP by SamplePoint, TestType
On my VB form, the user will select two dates to search between, and only results that occur between those two dates will be displayed on the crystal report.
How would I do this?
Can VB change the crystal report SQL command at runtime?
Many Thanks
"The Dude abides...."
-
Aug 11th, 2003, 09:04 AM
#2
PowerPoster
How about this...
SELECT DISTINCT Samplepoint, TestType, SUM(Result)
FROM Daily WHERE Result <> 'none'
and Date <= EndDateEntered
and Date >= StartDateEntered
GROUP by SamplePoint, TestType
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
|