Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
C#
cmd = new OleDbCommand("select * from payment where ID='"+pid+"'", con);

When i execute this code then i got some error "Data type mismatch in criteria expression"

where
id column is Autonumber
and
pid is String

so any one help me..

Regard
Sham
:)
Posted
Updated 25-Sep-12 19:12pm
v2

1 solution

Hello frnd i solve my self.....
C#
cmd = new OleDbCommand("select * from payment where ID="+pid+"", con);
 
Share this answer
 
v2

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