I have a form with a command button with the following code that is used to open a .pdf file named the same as the form ID#.
Application.FollowHyperlink “C:UsersBryanDocumentsMy ApplicationsAccess ApplicationsMD EventsJournal Docs” & Me.ID & “.pdf”
Exit Sub
This has worked fine, but I now need to add additional documents to the same folder and just want to open the folder with the common ID# so I can see all of the associated documents. In other words, I want to open folder 20 from form 20. I’ve tried several different modifications of the code, but get an error every time. I can get Access to open a folder directly, but not one associated with ‘Me.ID’
Any help greatly appreciated.