Solved

incompatible type in OLEDB

Posted on 2002-03-18
2
190 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
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

New! My Passport Wireless Pro Wi-Fi Mobile Storage

Portable wireless storage to offload, edit, and stream anywhere.

High-capacity, wireless mobile storage designed to accompany professional photographers and videographers in the field to easily offload, edit and stream captured photos and high-definition videos.

Question has a verified solution.

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

Suggested Solutions

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…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now