Hi,
I have a database (ms access 2016) in which I separate the materials according to their characteristics and relate them with its creator who prepared it, the unit and topic it belongs to. I display materials in forms and reports and there is an attachment field where I put the material as pdf, image or word document. I want to put buttons that will make the "upload" action in the form and "download" and "print" in the report. I couldn't do it because I'm not knowledgeable in VBA. For example, when I add access's own print button, it prints the whole report, but I want it to print only the attachment, not the whole report, likewise, I want it to download only the attachment (for example, the pdf document in the attachment) and open my file explorer to upload the file to the attachment from the computer. How do I bind these buttons to the attachment field with VBA code?
I have a database (ms access 2016) in which I separate the materials according to their characteristics and relate them with its creator who prepared it, the unit and topic it belongs to. I display materials in forms and reports and there is an attachment field where I put the material as pdf, image or word document. I want to put buttons that will make the "upload" action in the form and "download" and "print" in the report. I couldn't do it because I'm not knowledgeable in VBA. For example, when I add access's own print button, it prints the whole report, but I want it to print only the attachment, not the whole report, likewise, I want it to download only the attachment (for example, the pdf document in the attachment) and open my file explorer to upload the file to the attachment from the computer. How do I bind these buttons to the attachment field with VBA code?