Solved

serch in database which have numeric column

Posted on 2011-02-24
3
279 Views
Last Modified: 2012-05-11
in my tabe i have numeric  column type    it is number
when i use sql  Qerny
  sqlstr = "SELECT * FROM tbl WHERE  num  ='" & TextBox7.Text & "'"

Open in new window

when i click button give my msg problem ("deffrent type)
it can complet serch

i use visal basic 2005  and accssess
"
0
Comment
Question by:ziayd2009
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 33

Expert Comment

by:jppinto
ID: 34975615
sqlstr = "SELECT * FROM tbl WHERE  num  ='" & CInt(TextBox7.Text) & "'"
0
 
LVL 23

Accepted Solution

by:
wdosanjos earned 50 total points
ID: 34976874
Try:

sqlstr = "SELECT * FROM tbl WHERE  num  =" & TextBox7.Text

Open in new window

0
 
LVL 9

Expert Comment

by:mayank_joshi
ID: 34978765
try:-
sqlstr = "SELECT * FROM tbl WHERE  num  =" & Val(TextBox7.Text)

Open in new window


0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

623 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