The syntax is
CREATE PROC procName ( listOfArguments) AS sqlStatement
You can drop the procedure like this:
DROP PROC procName
You can use the complete word PROCEDURE instead of just PROC. Note
that
you can also use an action query, not just a SELECT query, as sql
statement.
Hoping it may help,
Vanderghast, Access MPV
<aa> wrote in message Thanks, Paul
I use ADO in ASP
I posted this question here in Access NG because I wanted to store the
query
in the .mdb file and then call this query from ASP code passing the
parameter
So what would be the syntax for such stored query?
What are you using for data access? DAO or ADO? If you're writing
ASP,
you're in the wrong NG. Nevertheless, there are hundreds of ADO
examples
on
the net...see
http://www.jansfreeware.com/articles/adoasp.html or
Google
--
Paul Overway
Logico Solutions, LLC
www.logico-solutions.com
<aa> wrote in message Thanks, Paul
QueryDefs - is this from VB or from ASP too?
I searched ASP 3.0 documentation and found no such collection
If I already have this query stored in Access, what would be the
syntax
to
allow the query to take a parameter for MIN function?
message
Assuming you already have a database object named db...
Dim qdf
Dim rst
Set qdf = db.QueryDefs("somequery")
qdf.Parameters("someparameter") = yourvariable
Set rst = qdf.OpenRecordset()
--
Paul Overway
Logico Solutions, LLC
www.logico-solutions.com
<aa> wrote in message From another application (ASP) I run a query using
MIN(some_field/parameter)
where parameter is an external value
How can I pass this parameter to the query?
Syntax like
MIN([some_field] / [])
does not work