joshuar
New member
- Local time
- Today, 11:02
- Joined
- Dec 15, 2020
- Messages
- 9
When interfacing with attachments, the "double click" and the "Open" buttons open the attachment. From there the document can be edited and, when saved, it updates the attachment record directly. If user tried to close the "Attachments" window while the document was still open, the user is even warned that the document is still being edited.
Question is, what is the VBA code to replicate this action (opening the document within the record directly)?
I already have the code to copy the attachment to a temp directory and open it, but that is just opening a copy. When it's saved, it's not saved directly to the record it was opened from; the user has to delete the original and re-upload it to update the record, not what I'm looking to do. What's behind these buttons?