Hello to all,
I have a database that I want the users to enter the picture name (i.e. pic1.jpg) into a field. Once the name is entered, I was Access2K to open that picture in Windows Explorer window once the field is clicked.
I have the field type as 'Hyperlink' but Access adds http:\\ before the file name. I tried to replace that using:
Private Sub Picture_AfterUpdate()
txtPicture = Replace(txtPicture, "# "#C:\Documents and Settings\DBA\My Documents\")
End Sub
but it doesn't work. Does anyone know how to fix this?
Also... How can I have the location to be changed depending on the network the db is on. Meaning, I am sending this db to our field offices where they will input all the info and have pictures saved on their server. Once they send the info back to me at HQ, I will need to change the location path back to my server.
Is there an easy way where the field offices can input the location path specific to their network without using VBA?
Thanks so much for your help!!!!!!!!!!!!!!!!!!!!!
BakerUSMC
I have a database that I want the users to enter the picture name (i.e. pic1.jpg) into a field. Once the name is entered, I was Access2K to open that picture in Windows Explorer window once the field is clicked.
I have the field type as 'Hyperlink' but Access adds http:\\ before the file name. I tried to replace that using:
Private Sub Picture_AfterUpdate()
txtPicture = Replace(txtPicture, "# "#C:\Documents and Settings\DBA\My Documents\")
End Sub
but it doesn't work. Does anyone know how to fix this?
Also... How can I have the location to be changed depending on the network the db is on. Meaning, I am sending this db to our field offices where they will input all the info and have pictures saved on their server. Once they send the info back to me at HQ, I will need to change the location path back to my server.
Is there an easy way where the field offices can input the location path specific to their network without using VBA?
Thanks so much for your help!!!!!!!!!!!!!!!!!!!!!
BakerUSMC