Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

In VB6 I'm trying to modify the fol

Status
Not open for further replies.

dmccallum

Programmer
Jan 5, 2001
90
US
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)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top