
05-13-2002, 12:07 PM
|
 |
Contributor
|
|
Join Date: Apr 2002
Location: Ontario, Canada
Posts: 673
|
|
|
Are you wanting to change the SQL query, or do you just want a parameter added to it? If you want to change it, then it might be better just to add an additional command object.
I'm not going to go into full detail on how to have a parameter in an SQL query, but here is a start ...
... in your SQL query, use the "?" key to identify a parameter
example ...
SELECT * FROM AccountLog WHERE StudentID = ?
... you mentioned that your using a dataenvironment, so click on the properties of the specific command object your talking about, and you will need to set the parameter properties on the parameters tab.
... when you call the command object, pass the parameter with it
example ... desomething.command_obectname parameter_value
Well, I hope that help a little at least.
|
|