Solved

incompatible type in OLEDB

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Redirect website ! 4 54
Web server load balancing technologies and methods 3 96
IIS url rewrite rule for web application 3 63
Internal to DMZ IIS Authentication. 3 28
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

821 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