SQL Problem

Will21

New member
Joined
Nov 4, 2005
Messages
3
Programming Experience
1-3
** No Worries sorted it out **

Having some problem passing an integer value into an SQL String,

I have something like this

"SELECT * FROM table WHERE id=IntVarible"

Now this works when i stick in a number like so...

"SELECT * FROM table WHERE id=1"

But get an error with the former

Any suggestions? Thanks
 
would guess that
VB.NET:
"SELECT * FROM table WHERE id=IntVarible"
and
VB.NET:
"SELECT * FROM table WHERE id=" & IntVarible.toString()
is not the same thing
 
Back
Top