473,407 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Adding base address to hyperlinks

Hi all. Just when I thought I was finished I realized that my table, in the hyperlink field, doesn't have the base address in each link. E.g.

I have:
040F-CY181824-MS.JPG
where it should be
T:\SHARED FILES\Administration\Masters and Molds Photos\040F-CY181824-MS.JPG

Since I have over 2000 records I tried to use the below update query but it only updates the "text to display" field and not the acutall "Address". It's supposed to do both.

Can some1 tell me what I'm missing?

Left([HyperLinkField],InStr([HyperLinkField],"#")+56) & [Photo] & "#" & Left([HyperLinkField],InStr([HyperLinkField],"#")+56) & [Photo]

56 is the number of characters of the base address. If I leave 1 it only puts the " T " into the address.

Thanks!
Apr 13 '07 #1
8 1903
MMcCarthy
14,534 Expert Mod 8TB
Hi all. Just when I thought I was finished I realized that my table, in the hyperlink field, doesn't have the base address in each link. E.g.

I have:
040F-CY181824-MS.JPG
where it should be
T:\SHARED FILES\Administration\Masters and Molds Photos\040F-CY181824-MS.JPG

Since I have over 2000 records I tried to use the below update query but it only updates the "text to display" field and not the acutall "Address". It's supposed to do both.

Can some1 tell me what I'm missing?

Left([HyperLinkField],InStr([HyperLinkField],"#")+56) & [Photo] & "#" & Left([HyperLinkField],InStr([HyperLinkField],"#")+56) & [Photo]

56 is the number of characters of the base address. If I leave 1 it only puts the " T " into the address.

Thanks!
What is the full hyperlink value in the [HyperLinkField] can you give an example.
Apr 13 '07 #2
What is the full hyperlink value in the [HyperLinkField] can you give an example.
Yeah, I put it in the original post. One of the record is supposed to have:

T:\SHARED FILES\Administration\Masters and Molds Photos\040F-CY181824-MS.JPG

But now I only have:
040F-CY181824-MS.JPG

Thanks!
Apr 13 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
Yeah, I put it in the original post. One of the record is supposed to have:

T:\SHARED FILES\Administration\Masters and Molds Photos\040F-CY181824-MS.JPG

But now I only have:
040F-CY181824-MS.JPG

Thanks!
Where does the "#" come in?
Apr 13 '07 #4
Where does the "#" come in?
From what I learned the Hyperlink is made of at least 3 fields separated by # .
The first is the "text to display" the second the acutal address.
Apr 13 '07 #5
MMcCarthy
14,534 Expert Mod 8TB
From what I learned the Hyperlink is made of at least 3 fields separated by # .
The first is the "text to display" the second the acutal address.
The problem is that the update cannot see that it can only see the displayed text.
Apr 13 '07 #6
MMcCarthy
14,534 Expert Mod 8TB
The problem is that the update cannot see that it can only see the displayed text.
If "T:\SHARED FILES\Administration\Masters and Molds Photos\" is the location of all of these files then


Expand|Select|Wrap|Line Numbers
  1. SET [Photo]="T:\SHARED FILES\Administration\Masters and Molds Photos\" & [Photo]
Should do what you want.
Apr 13 '07 #7
If "T:\SHARED FILES\Administration\Masters and Molds Photos\" is the location of all of these files then


Expand|Select|Wrap|Line Numbers
  1. SET [Photo]="T:\SHARED FILES\Administration\Masters and Molds Photos\" & [Photo]
Should do what you want.
I don't know how but it put just a ' 0 ' in the text to display and deleted the original link in the "address" field.
Apr 13 '07 #8
MMcCarthy
14,534 Expert Mod 8TB
I don't know how but it put just a ' 0 ' in the text to display and deleted the original link in the "address" field.
I don't know how either.

Did you back up the table/database?

If so try this ...

Create a new field called Photo2

Set [Photo2] = "As before"
Apr 13 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: just1coder | last post by:
Is there a way to programmatically change the base href tag in a website with JavaScript?
2
by: deko | last post by:
I have a subform in my Access 2002 mdb that holds Hyperlinks to documents (.pdfs) that are associated with each record in the database. The datasheet subform is simply a list of Hyperlinks to...
3
by: hermawih | last post by:
Please help . I want to load the contents of another rtf document by double-clicking the words . Chapter1.rtf Chapter2.rtf Chapter3.rtf ....
1
by: Steve Guidos | last post by:
We are writing a set of Windows Services using C#.NET that will run on the same server. One of the developers here said that we should assign each service its own Base Address using the Properties...
4
by: glebur | last post by:
Hi, I'm trying to create a web service client in C# but I get stuck at one of the first steps. When adding a Web reference to the Visual Studio project; I get this error (this is a translation,...
0
by: Shadow Lynx | last post by:
When using ASP.NET 2.0's built-in TreeView on a page with <BASE target = "AnythingBut_Self"></BASE> in the HEAD, the expand/collapse buttons fail to function. The reason for this is that the...
3
by: Newish | last post by:
Hi Regarding DLL base address: 1) What does it mean? 2) Should it ever be changed? 3) What are the rules to change it?
2
by: =?Utf-8?B?QnJhc3NpY2FOaWdyYQ==?= | last post by:
Greetings, Recently I upgraded to Windows Vista Ultimate and VS2008 with SQLExpress 2008. For the last several years I have been using Windows XP SP2 and VS2005 with SQLExpress 2005. All of...
0
by: =?Utf-8?B?Zmplcm9uaW1v?= | last post by:
Hi all, As I mentioned in a previous thread (see 'Dbghelp, symbols and templates' in microsoft.public.windbg), we created a powerful symbol engine using dbghelp to dump the contents of the stack...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.