Good day folks,
I'm hoping someone can help me on this problem I've had for a number of years now and I believe the work around I've being using really needs to be automated.
I import daily text file data into my database, which has a number of fields one of those fields is a path to where the image relating to that data is located.
The field in my database is named hprImagePath and it's datatype is set to hyperlink.
Because text files don't allow data to be underlined the information pertaining to the image path is just raw text data.
This presents a problem when importing that data into my table because even though I have set the field for this particular bit of data to be of hyperlink type, when the data is imported the hyper link that gets created doesn't work, even though the data is underlined and has turned blue.
The only way I can get this to work is to manually changed this fields datatype from Hyperlink to OLE Object save the table and then immediately change it back to Hyperlink and save the table again, then the hyperlink works and the image gets displayed when the link is clicked on.
What I would like to do and I've been searching for a long long time is to be able to programmatically changed the Datatype field from Hyperlink to OLE Object, save the table and then change it back to Hyperlink and save the table.
This would save having to do this manually everyday, whilst it doesn't take long to do manually, a problem I've had to deal with is that when I'm not around the person(s) that are suppposed to do this action in my absence always forget to do that part and so I end up having to deal with this upon my return which is a pain in the neck.
If anyone has any idea of how I can acheive this programmatically I would be most grateful for your assistance.
Regards
John
I'm hoping someone can help me on this problem I've had for a number of years now and I believe the work around I've being using really needs to be automated.
I import daily text file data into my database, which has a number of fields one of those fields is a path to where the image relating to that data is located.
The field in my database is named hprImagePath and it's datatype is set to hyperlink.
Because text files don't allow data to be underlined the information pertaining to the image path is just raw text data.
This presents a problem when importing that data into my table because even though I have set the field for this particular bit of data to be of hyperlink type, when the data is imported the hyper link that gets created doesn't work, even though the data is underlined and has turned blue.
The only way I can get this to work is to manually changed this fields datatype from Hyperlink to OLE Object save the table and then immediately change it back to Hyperlink and save the table again, then the hyperlink works and the image gets displayed when the link is clicked on.
What I would like to do and I've been searching for a long long time is to be able to programmatically changed the Datatype field from Hyperlink to OLE Object, save the table and then change it back to Hyperlink and save the table.
This would save having to do this manually everyday, whilst it doesn't take long to do manually, a problem I've had to deal with is that when I'm not around the person(s) that are suppposed to do this action in my absence always forget to do that part and so I end up having to deal with this upon my return which is a pain in the neck.
If anyone has any idea of how I can acheive this programmatically I would be most grateful for your assistance.
Regards
John