TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
karthi keyan
NA
1
10.3k
Data type mismatch in criteria expression
Dec 11 2010 12:20 PM
I am developing a vb.net application with MS Access Database .
I have a field(cut) with double data type in table marks of markss.mdb .
Following is my code:
Dim cob As Double
cob = CDbl(TextBox1.Text)'to convert textbox value to double
dbprovider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;"
dbsource = "Data Source=F:\vb\markss.mdb"
con.ConnectionString = dbprovider & dbsource
con.Open()
sql = "select name from marks where cut = 'cob'"
da = New OleDb.OleDbDataAdapter(sql, con)
da.Fill(ds, "result")
On debugging , when I enter ,say 7.9 , in Textbox 1 ,I get an error saying Data type mismatch in criteria expression.
Please help me to resolve this issue , guys ..
Thanks in advance !!!
Reply
Answers (
2
)
Archiving old data in sql server 2008
Change "Multiple Displays" combo box in "Screen Resolution" panel