Back in February, I had a database which most of the records referenced PDF files and we needed to be able to see certain files at the push of a button. EE-Expert Jeff Coachman (boag2000) assisted me in solving the problem and the solution has worked very well.
I now have a new database and would like to reference selected PDF to see, as well. I thought that I had learned the procedures to add the "view PDF" feature from the earlier question. I am apparantly missing some of the step needed to accomplish the goal.
I have tried to recreate the procedures on my new database but I feel that I am missing some important steps.
**************************
**********
**********
**********
**********
**********
**********
**********
**********
**********
**********
*****
I think that this is what I need to do:
1. Create a form for selecting and submitting the PDF(s) to view.
2. Add a separate unbound box to represent each type of PDF file needed for possible viewing. This box will contain the PATH and FILE NAME for the PDF and will be placed on the from from #1.
3, Create a button for each type of box in number 2 and place it next to the approporiate box..
In the "ON CLICK" enter an event which referenced the box in number 2 similar the next code below.
**************************
**********
**********
**********
**********
**********
**********
******
Private Sub cmdBasicPDF_Click()
strpubBasicOrPmtPDF = "Basic"
If strpubBasicPDFPath = "" Then
MsgBox "These is no PDF associated with this record.", vbInformation
Exit Sub
End If
DoCmd.OpenForm "frmPDF"
End Sub
**************************
**********
**********
**********
**********
**********
**********
******
NOTE: One difference in this database and the original, there are no subforms to use. Everything is in one table. All PDF files will be in one directory. I would like the "path" to be included in the code, if possible so that the user will not need to type a full path with the "file name".
I am sure that I have missed important steps. I can create and submit a simple database if needed. There are about six type of PDF files assocaited with each record.
Any assistance that you can give will be appreciated. Thanks for the hint about related questions, I did not know it existed.
WRSherman