Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

incompatible type in OLEDB

Posted on 2002-03-18
2
Medium Priority
?
211 Views
Last Modified: 2013-12-24
Hi all,

   My problem is really weird. Actually, my Client_id is exactly 174795 on my cfm form. So i don't understant why OLEDB converts it to 174795.000000 while building the insert query ? please get me a solution ...thanx a lot guys

here an error example :

Data Source = "myOLEDB"

SQL = "INSERT INTO Demande ( `CLIENT_ID` , `DATE_DEMANDE` , `NCIC` , `Observation_Demande` , `TEMPS_ATTENTE` , `TYPECAS_ID` ) VALUES ( 174795.000000,'{ts ''2002-03-18 11:12:00''}',1,'ytjyhj',0.000000,15.000000)"

0
Comment
Question by:Danny_H
[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
2 Comments
 
LVL 11

Expert Comment

by:jimmy282
ID: 6877578
What is the datatype of the field in DB?
It should be Number(MsAccess) or Int(SQlServer)
You must have Double or Real as of now.

Jimmy
0
 

Accepted Solution

by:
manonng earned 150 total points
ID: 6880358
hi

You can use #val(client_id)# to cast the client_id as an integer.

manon
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

660 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