Thanks for the quick reply but this i have to physically do it by using conversion function like to_char(Date,'Month') but crystal dont allow me to do it with that function so i am looking for an equivalent.
This expression i will be using it for creating a prompt.
I understood from yourside but the Business View Manager should not be recognising cdate({table.field}) and also ToNumber & MonthName function so i am getting the follwoing error message:
SQL Parsing Error:
42000:[Microsoft][ODBC SQL Server Driver][SQL Server]'monthname' is not a recognised function name.
you state that you need to use a database function, which is untrue, and you seem to be answering part of the answers supplied.
Try my solution, it should fix it immediately.
As for using a database side solution, consider that NOT posting your database type NOR the version of Crystal requires guesswork by others.
If you want to use a SQL Expression, then use whatever the syntax is for your database to convert it to a date first, simple stuff really.
Whatever the database is, DON'T use a to_char (I assume that you're using oracle), convert the char based date field to a date and just use crystal to format it. if you return a date as a text element, you will lose lookup, grouping and sortation capabilities on that field.
If you insist on doing so, then post in your database type forum here for the syntax for returning what you need as this is a database function question, not Crystal.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.