Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How can I update a URL returned in a query?

Posted on 2008-10-20
3
Medium Priority
?
295 Views
Last Modified: 2012-05-05
Using ASP/VBscript with an Access data base. One of the items returned in the record set is defined as text and contains this URL value:

http://www.signaturetravelnetwork.com/product/cruise/ship_builder/overview.cfm?product_id=69&sup_id=26&utp=consumer&agency_id=__agency_key__&type=consumer

Before I can use this URL on my web page I need to replace '__agency_key__' with the value 826. How do I manage this?
0
Comment
Question by:travelq13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 16

Expert Comment

by:brad2575
ID: 22756621
Replace(URLSTring, "__agency_key__", "826")

0
 

Author Comment

by:travelq13
ID: 22759697
I am not really certain how to use this with a value returned in the recordset.
0
 
LVL 16

Accepted Solution

by:
brad2575 earned 1000 total points
ID: 22759836
wherever/however you are displaying this on the screen you would use this.

So if you have

Response.write(rs("URLValue"))

You woudl replace it with this:

Response.write(Replace(rs("URLValue"), "__agency_key__", "826")
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question