I want to use Excel documents for data entry for each of my projects in Access. After the data has been transferred from Excel to Access, I want the Excel doc with the entered data to be saved in a folder for that project with other relevant documents. The Excel data entry doc is a template that I wish to store within the Access file instead of as a separate file that must be copied with the Access file. So, a few questions:
1. So far, the only way I've found to store an Excel document (in this case the blank template) within the Access file, is to use an Unbound Object Frame, select the template file I've saved from outside, and make sure the "Linked" checkbox is unchecked so it is instead embedded. It appears a copy is made in Access which is separate from the original Excel file. I must say I have found little documentation on this topic on the internet. It is usually assumed that the file is linked instead of embedded. My question in this case is, is this the only way to embed an Excel doc within the Access file? And does this mean I must find a place on a form for the Unbound Object Frame? What if I want to be able to access the embedded file from various forms and the form that has the Object Frame is closed? Do I need to place it on every Form that will be open?
2. After the user has entered data into the embedded Excel doc, what is the fastest and most efficient way to save a copy into the external folder? By fast and efficient I mean in terms of processing speed and error avoidance. Of course the embedded template should remain blank and unchanged after the save.
3. What is the best way to transfer the data from the Excel file into the Access database? I have read that Excel files cannot be linked to Access databases, but I have seen Excel VBA code that accesses an Access database. I must decide whether Excel VBA code or Access VBA code does the transfer, so are there advantages/disadvantages to each? In the first case, I would have a button on the Excel template doc that can be clicked after the data is entered, in the second case Access would pull the data from the completed Excel doc after I tell it in which folder it is saved. Is it possible to have Excel VBA automatically give notice to Access where it is saved when it is saved, and then have Access VBA do the actual data import using that file location? Unfortunately I will probably have to settle for a situation where the data in Access is stored separately from the Excel document and not linked, since I don't want my database falling apart if the Excel documents get moved or deleted. Any advice on how to manage this is welcome.
1. So far, the only way I've found to store an Excel document (in this case the blank template) within the Access file, is to use an Unbound Object Frame, select the template file I've saved from outside, and make sure the "Linked" checkbox is unchecked so it is instead embedded. It appears a copy is made in Access which is separate from the original Excel file. I must say I have found little documentation on this topic on the internet. It is usually assumed that the file is linked instead of embedded. My question in this case is, is this the only way to embed an Excel doc within the Access file? And does this mean I must find a place on a form for the Unbound Object Frame? What if I want to be able to access the embedded file from various forms and the form that has the Object Frame is closed? Do I need to place it on every Form that will be open?
2. After the user has entered data into the embedded Excel doc, what is the fastest and most efficient way to save a copy into the external folder? By fast and efficient I mean in terms of processing speed and error avoidance. Of course the embedded template should remain blank and unchanged after the save.
3. What is the best way to transfer the data from the Excel file into the Access database? I have read that Excel files cannot be linked to Access databases, but I have seen Excel VBA code that accesses an Access database. I must decide whether Excel VBA code or Access VBA code does the transfer, so are there advantages/disadvantages to each? In the first case, I would have a button on the Excel template doc that can be clicked after the data is entered, in the second case Access would pull the data from the completed Excel doc after I tell it in which folder it is saved. Is it possible to have Excel VBA automatically give notice to Access where it is saved when it is saved, and then have Access VBA do the actual data import using that file location? Unfortunately I will probably have to settle for a situation where the data in Access is stored separately from the Excel document and not linked, since I don't want my database falling apart if the Excel documents get moved or deleted. Any advice on how to manage this is welcome.