Using variable in results title

  • Thread starter Thread starter Stephen Green
  • Start date Start date
S

Stephen Green

I've got a working database results page with a drop down criteria selector.

I noticed that as the page does its work, the item selected in the drop down
reverts to the default. This leaves the impression that the resultant
report is using the criterion that is visible (the default).

So I thought I'd try to create a report title just above the results that
would use the memory variable that was chosen.

I've tried and tried, but haven't been able to figure it out.

Does anyone have any ideas that would help?

OR, can the drop down behavior be altered so that once the criterion is
selected it stays visible?

Thanks for any help you can offer.

Stephen
 
I assume there are values being put into the drop down, then displayed on
the page.
you could <% response.write "whateverthevalueis" %>.
you could surround this with <h1> and/or mark it up with your style sheet to
make it more prominent.

HTH

--
Chris Leeds,
Microsoft MVP-FrontPage

Please feel free to contact me here:
http://nedp.net/contact/
 
Thanks, Chris!

Since the value is a variable, is there something special I have to do to
use it? In the query it is surrounded by colons, thus: ::ProjectType::

Do I need to do that? Or surround the entire thing in quotes? Or...

Thanks for your help.

Stephen
 
After alot of trial and error (and searching the web for ASP tutorials), I
figured it out. the drop down form submits ProjectType.

<%
dim vProjectType
vProjectType=Request.Form("ProjectType")
Response.Write("Project Type: <b>" & vProjectType & "</b>")
%>

Thanks.

Stephen
 
sorry I didn't get back to you quicker, I've been tied up.
I'm glad you got it. Pretty cool isn't it?

--
Chris Leeds,
Microsoft MVP-FrontPage

Please feel free to contact me here:
http://nedp.net/contact/
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top