How to Append an Excel Worksheet to a Database Using DAO (145826)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Excel for Windows 95
This article was previously published under Q145826 SUMMARY
The example code in this article demonstrates how to append the data from
a Microsoft Excel worksheet to a table in a Microsoft Access database
(.mdb). The code uses the SQL INSERT INTO statement to append the records
from the Microsoft Excel Worksheet to the table in the Microsoft Access
database.
NOTE: SQL syntax is not supported by Microsoft Technical Support and this
Visual Basic example is provided as an example of this method only for
reference.
REFERENCES
For more information about Data Access Methods, click the Contents tab
in Microsoft Excel Help. Double-click "Microsoft Data Access Objects
(DAO)," double-click "Data Access Methods Reference," and then double-
click the appropriate letters to display the following topics:
OpenRecordset, Execute, CreateTableDef, Append
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming kbualink97 KB145826 |
---|
|