This sample demonstrates how to append data from a database to an Excel Spreadsheet using Office Automation to find the next empty row in the spreadsheet.
The overall process:
1) Define Access and Excel object variables
2) Open Excel sheet as an Excel Object
3) Find the last row of data
4) Write data from Access query to Spreadsheet
5) Save and close spreadsheet
Look in the "basExport" module for the relevant code.
Note: This requires a spreadsheet called "ExportSpreadsheet.xls" (included with the sample) exist in the same directory as the application. Also requires references set to DAO 3.6 and Excel
Download Access 2000-2003 Version: AppendValuesToExcel.zip
BMS Business Management System company is a developed company on software programming the try to create database application to enhance business productivity see our website :www.bmsco-eg.com
Subscribe to:
Post Comments (Atom)
Receipt Management: Stop Losing Paper Receipts Forever
Paper receipts fade, tear, and get lost. Here's how the Petty Cash app solves the receipt problem permanently. The Paper Problem Therma...
-
This sample demonstrates how to append data from a database to an Excel Spreadsheet using Office Automation to find the next empty row in th...
-
Microsoft Office Access , previously known as Microsoft Access , is a relational database management system from Microsoft that combines t...
No comments:
Post a Comment