|
-
August 7th, 2001, 11:46 AM
#1
ADO - using data environment
Where can I read about entering an SQL statement as one on my commands (Connection1) such as SELECT * FROM Customers WHERE CUSTID = ? and the CUSTID would be supplied by the user at run time. Thanks for any input!
John
-
August 7th, 2001, 11:53 AM
#2
Re: ADO - using data environment
At the run time when user entered his name, assign it to a variable string (sName) and then call the SQL
sSQL = "SELECT * FROM Customers WHERE CUSTID = '" & sName & "'"
Iouri Boutchkine
[email protected]
-
August 7th, 2001, 12:02 PM
#3
Re: ADO - using data environment
That will work, but I thought there was a way to enter your SQL statement as a Command & somehow reference the variable to the unknown in the SQL statement which is designated by a ?
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
|