I am reconfiguring an Access 2007 database to remove macro commands and use Visual Basic code. I've been able to do so with all other controls in my Form save one (with the help of your site). My abilities in Visual Basic are very rudimentary so I need your expertise. I'm hoping I can explain this in a manner that it makes sense.
I would like to write VB code for a command button in a Form so that when the user clicks on the button, it opens an external PDF unique to each record. My thoughts were that I should create a hyperlink field in the Table to link to the PDFs folder for each record. Then to create VB code in the command button's OnClick Event Procedure in the Form that jumps to the Table's hyperlink field of that same record to open each unique PDF.
Here are the variables:
Form Name = F_AR_Entry
Form's Command Button Name: View_Doc1
Table Name = T_DocList
Table's Field Name where Hyperlink to PDF is Stored = View_Doc
Record ID# Used in Attachments: E003
Name of Folder Where PDFs are Stored: 03.12.09 MBJR TEST
PDF File Name: E003.pdf
I'm a beginner - so I don't have any code to add since I don't know where to start w/ this. I've attached snapshot screens that will hopefully illustrate what I'm trying to do.