Click here to Skip to main content
15,908,931 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
if i input this value(E1020) from user and user click the insert buttton so he genrate datatype mismatch error. So what should i do?
Posted
Comments
swapnilKumbhar 5-Apr-12 4:26am    
DateType you used in Database is of another type may be Integer and You are inserting String value in it.Check your Query.

Check what the type of the data value is in the table.
It looks like you may be trying to insert a string value in a numeric table.
 
Share this answer
 
Comments
Espen Harlinn 5-Apr-12 5:27am    
That's most likely the answer :-D
Abhinav S 5-Apr-12 5:30am    
Thank you Espen.
Monjurul Habib 6-Apr-12 5:17am    
5!
Abhinav S 6-Apr-12 6:30am    
Thank you!
change the datatype to varchar so that there will be no error..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900