Hi Folks
I have an Access database I'm using for my application that contains about 15 tables, mostly fairly static data. But three tables are fairly dynamic and contain data that will change from one 'session' to the next.
I plan to create a separate 'Session' access DB that I can copy and then write the contents of the three tables to, and then also allow that data to be copied back into the main program to let users recall previous sessions. I'm using OLEDB for data handling.
I will have two connection objects, one for the static and working session data and another for the session backup DB. Within the program I'm using a series of data tables (no datasets) to store the data, and I'm wondering if there is a way to to take the data from a data table and copy it as a whole to the second database? The second Session DB will have blank copies of the three tables in it already with the same format.
If there is a better way to do this I'm all ears, this was what I came up with from my limited experience with Access as a database. Thanks for any help you can provide!
CraigHartz
I have an Access database I'm using for my application that contains about 15 tables, mostly fairly static data. But three tables are fairly dynamic and contain data that will change from one 'session' to the next.
I plan to create a separate 'Session' access DB that I can copy and then write the contents of the three tables to, and then also allow that data to be copied back into the main program to let users recall previous sessions. I'm using OLEDB for data handling.
I will have two connection objects, one for the static and working session data and another for the session backup DB. Within the program I'm using a series of data tables (no datasets) to store the data, and I'm wondering if there is a way to to take the data from a data table and copy it as a whole to the second database? The second Session DB will have blank copies of the three tables in it already with the same format.
If there is a better way to do this I'm all ears, this was what I came up with from my limited experience with Access as a database. Thanks for any help you can provide!
CraigHartz