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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vb crystal reports selection formula with date

Status
Not open for further replies.

SN082

Programmer
Feb 24, 2002
6
BE
Hello , I have a problem selectioning records with the selectionformula, I allways get an error message "ERROR IN FORMULA" when I try to select records on a valid date variable.
My standard date format is dd-mm-yy and i suppose that the problem lies with Crystal reports, who only mention yyyy-mm-dd in their help section. Can anybody help me with this issue?
btw, I use Crystal reports 4.5, delivered with vb5...
thanks,
stijn

sv
 
Thanks for your reply, but I still have a question,
the date I would use is a variable, would this code also work?
CR.ReplaceSelectionFormula= _
"{table.datefield}=Date(VarDATE)"

thanks in advance,

Stijn
 
hello I want convert date to character in crystal report in version 7. that is in crystal report i placed date field in character format but i can not do it how can i do it please help me.
thanks
yunus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top