Am putting together a document management db. Briefly, certain info is selected from combo boxes on form (from table: FileNames) and a concatenated string is created getting something similar to this: ABC.SignedLease.DSmith.20110901.FileNo1 which will be saved as a pdf file, OR
DAR.RentIncome.AptComplex23.20110901.FileNo2 which will be saved as a xlsm file.
I have a 'copy string to Clipboard' button on my form, so once the string is created, it is copied to the Clipboard. I then paste it into the file name 'field' under Save As...thus ABC.SignedLease.DSmith.20110901.pdf is the name of the saved file. ALL of the files regardless of type or subject are saved in one central folder. I extract that list of files from the folder via VBA and INSERT them into a table 'myFiles'.
I have a field on the form (that is in the FileNames table) that is set to Hyperlink. THE GOAL/QUESTION: How can I populate that Hyperlink field with the correct Path & FileName, including the file type (pdf, xlsm, doc, docx, etc.) so that the Hyperlink will open the file when clicked? I could have a ListOfFileTypes on the form where I could select one while creating the 'SaveAs' string but that seems too cumbersome.
I have created an Update query that uses a Select query based on what record on the FileName form has the focus...but that only updates one Hyperlink in the FileName table at a time. I would like to loop through the table and update all Hyperlink fields.
an aside...the easiest way to accomplish what I need would probably be to update FileName.HyperlinkField with the full file name as each is extracted from the folder. But I haven't tried to figure that out.
Thanks in advance.
DAR.RentIncome.AptComplex23.20110901.FileNo2 which will be saved as a xlsm file.
I have a 'copy string to Clipboard' button on my form, so once the string is created, it is copied to the Clipboard. I then paste it into the file name 'field' under Save As...thus ABC.SignedLease.DSmith.20110901.pdf is the name of the saved file. ALL of the files regardless of type or subject are saved in one central folder. I extract that list of files from the folder via VBA and INSERT them into a table 'myFiles'.
I have a field on the form (that is in the FileNames table) that is set to Hyperlink. THE GOAL/QUESTION: How can I populate that Hyperlink field with the correct Path & FileName, including the file type (pdf, xlsm, doc, docx, etc.) so that the Hyperlink will open the file when clicked? I could have a ListOfFileTypes on the form where I could select one while creating the 'SaveAs' string but that seems too cumbersome.
I have created an Update query that uses a Select query based on what record on the FileName form has the focus...but that only updates one Hyperlink in the FileName table at a time. I would like to loop through the table and update all Hyperlink fields.
an aside...the easiest way to accomplish what I need would probably be to update FileName.HyperlinkField with the full file name as each is extracted from the folder. But I haven't tried to figure that out.
Thanks in advance.