Solved

ODBC Error

Posted on 1998-03-18
3
323 Views
Last Modified: 2012-05-04
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
Comment
Question by:rickwinterkorn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Expert Comment

by:chazmanian
ID: 1459412
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
 

Author Comment

by:rickwinterkorn
ID: 1459413
Thank's for info chazmanian...however the problem still continues
0
 
LVL 1

Accepted Solution

by:
jcastr earned 100 total points
ID: 1459414
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question