Hi everyone,
I work for a company which produces technical reports for our customers. Each time a report is created, a unique number is generated using our access database and the report PDF file is saved as this same number. All reports are then stored in the same folder on our drive.
When I access a customers form on the database I have a separate form which shows 'past work' for the customer, and it is a tabular form where each line represents a report issued to them. What I would like to do is add a button which appears on each line of the form, which opens the appropriate report PDF based on the report number field on the form. Is this possible to do?
My initial thinking is that I would need a VBA code to combine the folder path "Q:\Compliance\Radiation Protection Adviser\Equipment reports\PDF\Issued\DB\" and then the report number [Report no] and then ".pdf" but I'm having a hard time trying to put together a code which doesn't break on me! I'm also happy to entertain solutions which don't involve VBA code, but I'm guessing this may be too advanced a function to be able to avoid VBA.
Please be aware that I'm by no means fluent in VBA so please dumb it down for me!
Thanks in advance.
Gary
I work for a company which produces technical reports for our customers. Each time a report is created, a unique number is generated using our access database and the report PDF file is saved as this same number. All reports are then stored in the same folder on our drive.
When I access a customers form on the database I have a separate form which shows 'past work' for the customer, and it is a tabular form where each line represents a report issued to them. What I would like to do is add a button which appears on each line of the form, which opens the appropriate report PDF based on the report number field on the form. Is this possible to do?
My initial thinking is that I would need a VBA code to combine the folder path "Q:\Compliance\Radiation Protection Adviser\Equipment reports\PDF\Issued\DB\" and then the report number [Report no] and then ".pdf" but I'm having a hard time trying to put together a code which doesn't break on me! I'm also happy to entertain solutions which don't involve VBA code, but I'm guessing this may be too advanced a function to be able to avoid VBA.
Please be aware that I'm by no means fluent in VBA so please dumb it down for me!
Thanks in advance.
Gary