SysDupe123
Technical User
I'm havign trouble with some code to export to Excel. I keep getting a too few parameters error. Please Help!
Here is the code I'm using.
Dim dbs As DAO.Database
Dim rst As DAO.Recordset
Dim intStart As Integer
Dim appXL As Excel.Application
Set dbs = CurrentDb
Set appXL = New Excel.Application
'Select the data you want to output !!!Here is where it happens!!!
Set rst = dbs.OpenRecordset("SELECT * FROM [qryMou];")
'Open the receiving book and activate the required sheet
appXL.Workbooks.Open "c:\OutputTest.xls"
appXL.Worksheets("Output2").Select
Here is the code I'm using.
Dim dbs As DAO.Database
Dim rst As DAO.Recordset
Dim intStart As Integer
Dim appXL As Excel.Application
Set dbs = CurrentDb
Set appXL = New Excel.Application
'Select the data you want to output !!!Here is where it happens!!!
Set rst = dbs.OpenRecordset("SELECT * FROM [qryMou];")
'Open the receiving book and activate the required sheet
appXL.Workbooks.Open "c:\OutputTest.xls"
appXL.Worksheets("Output2").Select