[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 330
  • Last Modified:

ODBC Error

I get the following error when I pass a date parameter '1998-01-01' to a report (Crystal Reports)from VB - the report runs off a stored procedure in sybase  ..... runs fine in the sybase environment.  
"ODBC error:[Sybase][ODBC Driver]An invalid ibScale value was specified"
0
rickwinterkorn
Asked:
rickwinterkorn
1 Solution
 
chazmanianCommented:
Go into the Crystal Reports design mode. Select File/Options and then Fields tab. There is an option to set the date format to YMD.
0
 
rickwinterkornAuthor Commented:
Thank's for info chazmanian...however the problem still continues
0
 
jcastrCommented:
Avoid any date format error with CRW using the
Date (yyyy,mm,dd)  function.

Ex

Report1.SelectionFormula = "Date(Year({SALES.date}),
Month({SALES.date}),
Day({SALES.date})) = " & Format (date, "yyyy,mm,dd")



0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now