Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,
How can I download Excel file from DataBase in Access then
1. Separate the data each month in separate file.
2. Add new row contains average or summation
3. The date is sequential, check if there is missing date

Thanks,
Posted
Comments
Pheonyx 26-Jun-13 4:40am    
What have you tried? What research have you done into attempting to achieve this?
Eman Ayad 30-Jun-13 1:27am    
I used this code to get Excel file
Dim AccessConn As New System.Data.OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=station.accdb;")AccessConn.Open()
'New sheet in Workbook
Dim AccessCommand As New System.Data.OleDb.OleDbCommand("SELECT * INTO [Excel 12.0 Xml;DATABASE=d:\" & db & "_" & Format(Now(), "dd-MM-yyyy_hh-mm-ss") & " .xls;].[" & db & "] from [" & db & "] where day_date between " & t1 & " and " & t2 & " ", AccessConn)
AccessCommand.ExecuteNonQuery()
_Amy 26-Jun-13 4:53am    
Is it your HomeWork?
Surendra Adhikari SA 26-Jun-13 9:55am    
+5 for _Amy

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900