Click here to Skip to main content
14,302,714 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 2

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

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100