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?