rainbowrabbit
MIS
I have created a database to log requests for work for our team. i would like to let users "attach" documents to each request record. I would liek to be able to associate hyperlinks for each request.
i have created a table with a field of data type hyperlink. To select an appropriate file I have used the common open dialog API. So now I have the pathname and filename in a string but i would like to save it as a hyperlink in the table I have created.
I am using the following bit of code;
rst.Open "select * from tblAttach where 1=0", cnn, adOpenKeyset, adLockPessimistic
rst.AddNew
strAttach = ahtCommonFileOpenSave(InitialDir:="C:\", Filter:=strFilter, FilterIndex:=3, Flags:=lngFlags)
rst.Fields("req_id").Value = 1
rst.Fields("file_hyperl").Value = ??????
rst.Update
The field file_hyperl is a hyperlink datatype bu I cannot figure out how to save it in the table.
Can someone help?
i have created a table with a field of data type hyperlink. To select an appropriate file I have used the common open dialog API. So now I have the pathname and filename in a string but i would like to save it as a hyperlink in the table I have created.
I am using the following bit of code;
rst.Open "select * from tblAttach where 1=0", cnn, adOpenKeyset, adLockPessimistic
rst.AddNew
strAttach = ahtCommonFileOpenSave(InitialDir:="C:\", Filter:=strFilter, FilterIndex:=3, Flags:=lngFlags)
rst.Fields("req_id").Value = 1
rst.Fields("file_hyperl").Value = ??????
rst.Update
The field file_hyperl is a hyperlink datatype bu I cannot figure out how to save it in the table.
Can someone help?