D
doodle
greetings. access 97, sql 2005
One section of my database allows users to browse for a picture, then
it stores the network path. the problem is that they are using their
server mapping to browse, which stores the path as:
U:\Spindle\Spindle_DataBase\Pictures\Linked Pictures
\Marvin_030705_1.JPG
instead of:
\\Servicerv1\Optimum\Spindle\Spindle_DataBase\Pictures\Linked Pictures
\Marvin_030705_1.JPG
this is causing issues with users that do not have the server mapped
to U:
i need to write an update query to change the paths. i suppose i will
need to run it daily going forward. i am writing it in visual studio.
i know how to write it to update the entire field, but how can i write
it to just replace a partial of the field? For instance, I want to
replace U:\ with \\Servicerv1\Optimum\
This is what I have to start off with, but of course it is not going
to find anything, I just wrote it so you could see the syntax:
UPDATE tblTD_Pics
SET ImagePath_1 = '\\Servicesrv1\Optimum\'
WHERE ImagePath_1 = 'U:\'
-doodle
One section of my database allows users to browse for a picture, then
it stores the network path. the problem is that they are using their
server mapping to browse, which stores the path as:
U:\Spindle\Spindle_DataBase\Pictures\Linked Pictures
\Marvin_030705_1.JPG
instead of:
\\Servicerv1\Optimum\Spindle\Spindle_DataBase\Pictures\Linked Pictures
\Marvin_030705_1.JPG
this is causing issues with users that do not have the server mapped
to U:
i need to write an update query to change the paths. i suppose i will
need to run it daily going forward. i am writing it in visual studio.
i know how to write it to update the entire field, but how can i write
it to just replace a partial of the field? For instance, I want to
replace U:\ with \\Servicerv1\Optimum\
This is what I have to start off with, but of course it is not going
to find anything, I just wrote it so you could see the syntax:
UPDATE tblTD_Pics
SET ImagePath_1 = '\\Servicesrv1\Optimum\'
WHERE ImagePath_1 = 'U:\'
-doodle