I have a calculated field in a query "Advertiser Lookup" that calculates the correct path to open a PDF that each ad was placed on. It works wonderfully and correctly displays each path for each ad (in text form). The problem is that I would like to allow my users to click a button in a form OR click the path within the query as a hyperlink. Either way would be fine and maybe it would be nice to have both options. In case anyone is wondering about what is in the calculated field, here it is.
Code:
PathToPDF: "R:\Peoples Back ups\" & Year(Year([Issue Date]) & " " & IIf(Month([Issue Date])<10,"0" & Month([Issue Date]),Month([Issue Date])) & " " & IIf(Day([Issue Date])<10,"0" & Day([Issue Date]),Day([Issue Date]))) & "\" & (Year([Issue Date]) & " " & IIf(Month([Issue Date])<10,"0" & Month([Issue Date]),Month([Issue Date])) & " " & IIf(Day([Issue Date])<10,"0" & Day([Issue Date]),Day([Issue Date]))) & " Folder\PDFs\" & (Year([Issue Date]) & " " & IIf(Month([Issue Date])<10,"0" & Month([Issue Date]),Month([Issue Date])) & " " & IIf(Day([Issue Date])<10,"0" & Day([Issue Date]),Day([Issue Date]))) & " " & [Page] & ".pdf"
and an example of the output is...
R:\Peoples Back ups\2010\2010 04 08 Folder\PDFs\2010 04 08 42.pdf
If I copy the output of the calculated field into Windows Explorer, it works perfectly. I even copied it into a test field that was set up as a hyperlink style and clicking it worked perfectly
Any suggestions as to how I can accomplish this? I'm not so hot with VBA so I bet that's what I need to do lol