Re: Passing Parameters to Access Query by Miha
Miha
Fri Dec 19 11:16:28 CST 2003
Hi Jupiter,
Something like this?
OleDbCommand myCommand = new OleDbCommand
("YourQuery",myConnection);
myCommand.CommandType=CommandType.StoredProcedure;
OleDbParameter parameterTask=new OleDbParameter
("ParamName",OleDbType.VarChar,15);
parameterTask.Direction = ParameterDirection.Output;
myCommand.Parameters.Add(parameterTask);
Beware that (for Access) it is better to recreate the command if you want to
invoke it with different parameter values.
--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
"Jupiter" <idpa@earthlink.net> wrote in message
news:dba116ff.0312190858.41250833@posting.google.com...
> Help!!!!!!!
>
> Does anyone know where I can find documentation on how to pass parameters
to an
> access query from a Web page using VB.net code?
> Any Examples, etc would help!
>
>
> Thanks in Advance
>
> Lea