> hi,
> First of all, it is not wise to put images in the db. it
[quoted text clipped - 5 lines]
> controls picture property to the new file path. i do this
> with dlookup usually.
Hi!
Thank you for the hints.. in some way I've done it and it works but, my
problem is to set the path to put in the field:
I explain: now I indicate in the link field something like
D:\T1\db\Image\image1.jpg
D:\T1\db\Image\image2.jpg
and so on...
Problem arise if I need to move the db directory... on another Hard disk or
on another computer with different configuration:
therefore I'd like to write something like
/image/image1.jpg to make it independent from the rest of the path...
I tried to use the above notation (also ..\image\image1.jpg) but it does'nt
work.. how should I do?
Thank you!
Sergio
anonymous@discussions.microsoft.com - 14 Apr 2005 18:40 GMT
hi again,
sorry i took so long to get back to you.
you can do that programaticly.
to change the file path:
Do a make table query selecting the record id and the
filepath into a temp table. in the temp table with only
the filepath and record id, do an update query and
truncate the filepath off of the image name.
UPDATE tmptbl SET tmptbl.filepath = Right([tmptbl],9);
where 9 would be the number of characters in the filepath
you want to change.
this would leave you with only the record id and the image
name in the temp table.
next do an up date query that will update your real table
with the new filepath.
UPDATE realtbl INNER JOIN realtbl ON temptbl.Id =
realtbl.Id SET realtbl.filepath = "S:\" & [temptbl].
[filepath];
where s:\ is the new file path and temptbl.filepath is the
image name.
may seem like a lot but it is rather simple.
hope this helps.
good luck
>-----Original Message-----
>
[quoted text clipped - 28 lines]
>
>.
SergioBS - 14 Apr 2005 19:02 GMT
Well...thank you.. at first trial I've not successed...but I'll try again...
Thank you!
Sergio
> hi again,
> sorry i took so long to get back to you.
[quoted text clipped - 66 lines]
>>
>>.