|
-
Nov 15th, 2002, 07:49 AM
#1
Thread Starter
Junior Member
Date-selection with Crystal Reports in VB
I have a date in my database. I select a date on my form in VB and then I have to compare this date with the data on the crystal report.
sSelection = "{Planning.Medewerkernr} = " & CmboMedewerker.BoundText & " {Planning.datum} > " & Format(DPBegin, "dd-mm-yyyy")
WeekReport2.SelectionFormula = sSelection
WeekReport2.PrintReport
It just does nothing. But when I put it like this it worked:
sSelection = "{Planning.Medewerkernr} = " & CmboMedewerker.BoundText
WeekReport2.SelectionFormula = sSelection
WeekReport2.PrintReport
The report was shown and the selection worked. How do I work with the date as a selection with crystal reports and VB?
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
|