In VB6 I'm trying to modify the following to allow me to select data from VB6 instead of using the parameter in Crystal. But my date format is yyyymmdd as a string and this gives me an error message saying a string was expected here:
strSelectionFormula = "{JobCost.DateEntered} in String(" & _
Format(txtFromDate, "yyyy,mm,dd"
& "
to String(" & _
Format(txtToDate, "yyyy,mm,dd"
& "
"
crptduxford.ReplaceSelectionFormula strSelectionFormula)
strSelectionFormula = "{JobCost.DateEntered} in String(" & _
Format(txtFromDate, "yyyy,mm,dd"
Format(txtToDate, "yyyy,mm,dd"
crptduxford.ReplaceSelectionFormula strSelectionFormula)