Solved

How can I update a URL returned in a query?

Posted on 2008-10-20
3
250 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
  • 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 250 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now