I have a recordset based on SQL connecting to AS400. How can I COPY that recordset to a real Access table without having to read/write each field/record? Anything similar to COPYRECORDSET in Excel???
By attaching the recordset, you get the benefit of all data changes as they happen without importing periodically and you get the structure automatically.
I can't link to the AS400 because all I need is a subset (extract) of the table. Right now I'm doing the connection with an SQL statement for the criteria I need.
That result recordset is what I want to copy to a permanent Access table without having to READ/WRITE one record at a time.
The reason that I suggested linking a table is that the nature of data is that when you perform an extract, the data is already obsolete. Data, by definition, is dynamic and ever-changing. So, every time that you want to examine your data, you would have to re-download an extract which has significant overhead, uses tremendous resources and takes a lot of time - especially if the table is huge.
If you linked a table, you could run your SQL statments or queries on the subset and you will be examining "fresh and current" data every time without invoking the extraction every time that you needed that data for your purposes. Remember, the size of a linked table has no impact on your Access database. You could even run yor SQL statements at the database server on the AS400 (by using stored procedures and triggers) and simply pass dynamically-extracted data to the Access application.
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
By attaching the recordset, you get the benefit of all data changes as they happen without importing periodically and you get the structure automatically.
Lenny