I have a form which we use for data entry and sometimes we need to upload a document to keep with a record.
I have made a section for attachments in the table for storing these. What I'm after is some VBA code so when I click a button on the form I am using with the data entry, I can select a file to attach to this record. The catch here is that the record may not have been saved yet so i really need it to sit on the form until we are finished data entry then save this all as one record.
I wouldn't know where to start with this so have also looked at possibly storing the file path in a text box then once we submit the form some sort of code to attach the file (recorded in that file fath) to the attachment in the table.
Any help would be greatly appreciated. I have searched many threads and forums but nothing straight forward.
I have made a section for attachments in the table for storing these. What I'm after is some VBA code so when I click a button on the form I am using with the data entry, I can select a file to attach to this record. The catch here is that the record may not have been saved yet so i really need it to sit on the form until we are finished data entry then save this all as one record.
I wouldn't know where to start with this so have also looked at possibly storing the file path in a text box then once we submit the form some sort of code to attach the file (recorded in that file fath) to the attachment in the table.
Any help would be greatly appreciated. I have searched many threads and forums but nothing straight forward.
Comment