|
-
Nov 12th, 1999, 03:49 AM
#1
Thread Starter
Lively Member
does anyone know the proper syntax to insert variables into an SQL statement? the references i have and the vb help files do not seem to cover this.
-
Nov 12th, 1999, 12:27 PM
#2
Guru
-
Nov 13th, 1999, 09:35 PM
#3
Addicted Member
For sample:
"select * from table where numfield = " & number
"select * from table where txtfield = '" & text & "'"
------------------
smalig
[email protected]
smalig.tripod.com
-
Nov 14th, 1999, 08:48 PM
#4
Thread Starter
Lively Member
this will be in vb. i attempted to use a select statement very similar to what smalig suggested but things don't seem to be working properly. i've pretty much decided to cry uncle and purchased sql for dummies over the weekend.
-
Nov 15th, 1999, 11:37 AM
#5
Guru
smalig's code looks right. You could post your code and we'll take a look....
-
Nov 16th, 1999, 10:41 PM
#6
Thread Starter
Lively Member
i actually just figured out the problem. i kept getting a message concerning incompatible data types. after i went off in several different directions, i realized that i was not using quotes. sometimes it's in the details.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|