in my application I have a number of options where the user can transfer data out of the program into a spreadsheet, I would like to create a dynamic option to do this but Im not really sure how to go about this.
I thinking something like this, but im guessing it cant be that simple.
Thanks in advance
Andy
Code:
strSQL = Me.txtSQL.Value
If strSQL Like "Select*" Then
strSQL = Me.txtSQL.Value
DoCmd.RunSQL strSQL
DoCmd.TransferSpreadsheet acExport, , THESQLRESULTGOESHERE, "C:\Program Files\MYAPPLICATION\Exports\sqldump.xls", True
APPNAME
I thinking something like this, but im guessing it cant be that simple.
Thanks in advance
Andy