I am trying to use DoCmd.TransferSpreadsheet to transfer data from a access 2003 form into a excel 2003 spreadsheet. But my code is not working. I am trying to export to alert.xls and have a series of combo boxes and check boxes i am trying to export from. The form is called medical form but i am not sure if should call it this or me.form.
I have never used this function before so any help would be good, Thanks.
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, Me.Form, "C:\Documents and Settings\chicks\My Documents\Alert.xls", [Me.Combo12,Me.Combo14,Me.Combo16,Me.Combo18,Me.Combo18,Me.Combo20,Me.Combo38,Me.Combo40,Me.Combo42,Me.Check22,Me.Check24], , True
I have never used this function before so any help would be good, Thanks.
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, Me.Form, "C:\Documents and Settings\chicks\My Documents\Alert.xls", [Me.Combo12,Me.Combo14,Me.Combo16,Me.Combo18,Me.Combo18,Me.Combo20,Me.Combo38,Me.Combo40,Me.Combo42,Me.Check22,Me.Check24], , True