Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How to pass a parameter in a stored Access query

Reply
Thread Tools

How to pass a parameter in a stored Access query

 
 
Jack
Guest
Posts: n/a
 
      12-28-2004
Hi,
I have a stored access query which is corresponding to a particular id.
However, I am using a login script to capture the value of an id. Now, I want
to dynamically open the stored query by passing the id captured via login.
Which means, I need to erase the static id value associated with the stored
query GMISExpenseCombo.
My question is how do i open this stored query by passing the id value to
the stored
query. I am using this stored query to retrieve some financial data for the
corresponding record. Any help is appreciated.
Currently, I am opeing the static stored query as follows
RS.Open "GMISExpenseCombo"
 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      12-28-2004
Jack wrote:
> Hi,
> I have a stored access query which is corresponding to a particular
> id. However, I am using a login script to capture the value of an id.
> Now, I want to dynamically open the stored query by passing the id
> captured via login. Which means, I need to erase the static id value
> associated with the stored query GMISExpenseCombo.
> My question is how do i open this stored query by passing the id
> value to the stored
> query. I am using this stored query to retrieve some financial data
> for the corresponding record. Any help is appreciated.
> Currently, I am opeing the static stored query as follows
> RS.Open "GMISExpenseCombo"


Assuming the name of your connection variable is Conn, do this:

idvariable = ...
Set RS=createobject("adodb.recordset")
Conn.GMISExpenseCombo idvariable, RS

See here for more information (I've already provided this link to you -
didn't you read it?)

http://www.google.com/groups?selm=eE...&output=gplain

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Parameter Type/Size Property Values for VARCHAR(MAX) Stored Proc Parameter jcpc ASP .Net 2 01-26-2011 11:48 AM
How to bind input text field to pass as parameter to stored procedure in BLL darren.murray2@cingular.com ASP .Net 2 05-24-2007 11:27 PM
How to handle Access stored query with parameter in ASP page Jack ASP General 1 12-16-2004 08:17 PM
Using query string to pass a value to a stored procedure parameter Machelle Chandler ASP .Net Datagrid Control 0 10-20-2003 11:22 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57