Re: update hyperlink through query
- From: "Maria" <maria.hultman@xxxxxxxxxxxxx>
- Date: 27 Jun 2006 06:21:54 -0700
Hello again x-rays,
I tried it with double quotes first but someone told me single quotes
were more common in SQL. That's why I tried changing it. However both
ways, unfotunately, gave the same error message.
/Maria
PS. No worries... My name's common all over the world.
x-rays skrev:
Hello Maria,
I don't see how is that possible to fail either, eclose strings with
double quotes instead of single and tell me if works this way.
PS: oh ok, sorry for asking.
Maria wrote:
Hello x-ray,
Thankyou so much for the help. I thought your solution looked
absolutely perfect however I got an error message saying somehing like
"the expression contains a function with the wrong number of
arguments." I tried to look inte the help to understand this but I
couldn't see anything wrong.
Here's my new line of code:
UPDATE Bildoriginal
SET Bildfil = Replace(Bildfil, 'K:\', '\\Avantgrp\gemensam2\')
/Maria
Ps. No I'm not greek. I'm Swedish....
x-rays wrote:
Hello Maria,
I think you need something like that:
Lets say that the value of your column (in that case Field1) of a row
is "D:\Avant\blabla"
UPDATE YourTable
SET Field1 = Replace(Field1, "D:\", "C:\")
Now your value is C:\Avant\blabla
Is this works for you?
PS: are you greek?
Maria wrote:
Hello again,
I think I might be on may way to the answer but I would still need some
help:
I realize that my query has to look something like this
UPDATE MyTable
SET Bildoriginal = (Bildoriginal - "K:\Avant Structure\Avant
Intellectual Capital AIC\Produkt\Symboler\Bildoriginal\)" &
("#\\Avantgrp\gemensam2\Avant Structure\Avant Intellectual Capital
AIC\Produkt\Symboler\Bildoriginal\" & Bildoriginal)
although not quite like this at all.
/Maria
Maria wrote:
Hi,
I have created a table in a database that contains hyperlinks pointing
to various documents, all in the same folder but for some reason the
hyperlinks wouldn't work correctly unless I put the direct address in
the hyperlink.
Now the location of the document folder has changed and I need to
update the hyperlink addresses but I can't quite figure out how to do
that. I'm quite new to this... The filed shows the fliename. I need to
keep the filename and both in the visible field and at the end of the
adress but I ned to change the part of the address that points into the
folder. It's a few hundred files so it's not appealing having to do
this manualy and I'm sure it could be done through a query.
I would be very thankful for all directions.
/Maria
.
- Follow-Ups:
- Re: update hyperlink through query
- From: x-rays
- Re: update hyperlink through query
- From: Gary Walter
- Re: update hyperlink through query
- References:
- update hyperlink through query
- From: Maria
- Re: update hyperlink through query
- From: Maria
- Re: update hyperlink through query
- From: x-rays
- Re: update hyperlink through query
- From: Maria
- Re: update hyperlink through query
- From: x-rays
- update hyperlink through query
- Prev by Date: Re: update hyperlink through query
- Next by Date: Re: update hyperlink through query
- Previous by thread: Re: update hyperlink through query
- Next by thread: Re: update hyperlink through query
- Index(es):
Relevant Pages
|