|
-
Jan 4th, 2000, 02:25 AM
#1
Thread Starter
Lively Member
How do I include a variable in an SQL statement? ie What is wrong with this one? strQuery = "Select * From JobStatusEntries Where FormNum = FormNumber" I get "No value given for one or more required parameters" when I try to adodc1.refresh the control. Thanks,
casox
-
Jan 4th, 2000, 03:04 AM
#2
Here's an example
SQL = "DELETE FROM SavedSystems WHERE SystemName = " & "'" & sSysName & "'"
And just in case you can't read it, the symbols around the variable sSysName are a single quote within double-quotes.
------------------
Marty
[This message has been edited by MartinLiss (edited 01-04-2000).]
-
Jan 4th, 2000, 10:24 PM
#3
Thread Starter
Lively Member
Martin,
It works! Thanks much.
Kim
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
|