Hello,
I don't completely understand the working of these functions, but it's been suggested that these will give me what I need.
I have a database that pulls in image files (stores the absolute path in database). The image shows up in my subform. The file name is displayed in a form control called 'image description'. The problem is it displays the entire link, such as c:\imageCats\Gi zmotheCat.jpg (absolute path)....
End user cah 'browse' to any folder they may have stored pictures to retrieve an image. So the absolute path will change with each end-user. I don't want to hardcode a specific path. However, I do need the absolute path to an image stored and only display in the control a name, i.e. GizmotheCat.
I'm looking for real working example code for StrReverse (InStr), so I can somehow reverse the string, cut off the 'GizmotheCat.jp g and display only the GizmotheCat in this control. I also like the .jpg to go into another control box. I've received some examples, but can't get them working in my form.
Does anyone have something like this? Thanks in advance.
Rosie
I don't completely understand the working of these functions, but it's been suggested that these will give me what I need.
I have a database that pulls in image files (stores the absolute path in database). The image shows up in my subform. The file name is displayed in a form control called 'image description'. The problem is it displays the entire link, such as c:\imageCats\Gi zmotheCat.jpg (absolute path)....
End user cah 'browse' to any folder they may have stored pictures to retrieve an image. So the absolute path will change with each end-user. I don't want to hardcode a specific path. However, I do need the absolute path to an image stored and only display in the control a name, i.e. GizmotheCat.
I'm looking for real working example code for StrReverse (InStr), so I can somehow reverse the string, cut off the 'GizmotheCat.jp g and display only the GizmotheCat in this control. I also like the .jpg to go into another control box. I've received some examples, but can't get them working in my form.
Does anyone have something like this? Thanks in advance.
Rosie
Comment