Solved

incompatible type in OLEDB

Posted on 2002-03-18
2
203 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 50 total points
ID: 6880358
hi

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

manon
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

623 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