using Tigerlili3's advice in thread702-1137528,
"You can have a field in the table which I'll call Attachment for this example. The data type needs to be OLE Object. On your form you need to have a bound object frame which I'll call tvwAttach for this example. You can have a button on the form that will call up the insert object dialog box by placing the following code in the on_click event:
CODE
tvwAttach.Action = acOLEInsertObjDlg
From there, the users can select to 'create from file' where they navigate to the file using the Browse button and then may choose whether or not to link to the file. It is best to link as long as the file will not change locations. This will save a lot of space in the database. In addition, any changes that are made to the files outside of the database will be reflected when they are viewed using the link inside the database. I also recommend using 'display as icon'. It just looks better. The file can be opened by double-clicking on the icon.",
I've been able to embed a pdf form in a record, allowing me to delete the original pdf from the folder it was stored in. I would like to fine-tune the form now:
- when I click the button to call up the insert object dialog box, I am always given a choice of creating a new object or create from file. I would like it to only give the option to create from file AND to always default to a specific directory.
"You can have a field in the table which I'll call Attachment for this example. The data type needs to be OLE Object. On your form you need to have a bound object frame which I'll call tvwAttach for this example. You can have a button on the form that will call up the insert object dialog box by placing the following code in the on_click event:
CODE
tvwAttach.Action = acOLEInsertObjDlg
From there, the users can select to 'create from file' where they navigate to the file using the Browse button and then may choose whether or not to link to the file. It is best to link as long as the file will not change locations. This will save a lot of space in the database. In addition, any changes that are made to the files outside of the database will be reflected when they are viewed using the link inside the database. I also recommend using 'display as icon'. It just looks better. The file can be opened by double-clicking on the icon.",
I've been able to embed a pdf form in a record, allowing me to delete the original pdf from the folder it was stored in. I would like to fine-tune the form now:
- when I click the button to call up the insert object dialog box, I am always given a choice of creating a new object or create from file. I would like it to only give the option to create from file AND to always default to a specific directory.