I need to export data from access to an excel database [logon and
logoff times] to calculate times and wages for the week but the code
that I entered doesn't seem to like either me or the database!
I need it to go to one specific sheet in an excel workbook - the code
used is following as was advised earlier - but I am having no luck and
I want to get this database working asap.
code is:
Option Compare Database
Public Function TransferSpreadsheet()
Sub SendToExcel()
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97,
"tblLogTimes", "C:\Documents and Settings\Office\My
Documents\Employeetimesheets.xls", True
Application.FollowHyperlink "C:\Documents and Settings\Office\My
Documents\Employeetimesheets.xls"
End Sub
End Function
I have used the following macro to initiate the module
OpenModule
TransferSpreadsheet [export s/s to excel 8-10, tblname, has field
names]
StopMacro
this is not working - what have i done wrong?