
selection formula problem
this is an example of concatenating a string that will be the selection
criteria
depending on whether the combo box in question has significant text. I'm not
sure from your message how the calendar controls fit in.
I haven't tested the code below, but I think it will work. At any rate it
demonstrates
the principle involved.
Dim strRptCriteria as string.
If combo1 <> "" and not (Isnull(combo1)) then
strRptCriteria = "{qry1.field1} = " & "'" & combo1 & "'"
end if
If combo2 <> "" and not(Isnull(combo1)) then
strRptCriteria = strRptCriteria & "{qry1.field2} = " & "'" & combo2
& "'"
end if
CrystalReport1.SelectionFormula = strRptCriteria