Hello All,
I am trying to put the date in the file name. I am outputting a table to an excel file and trying to put the date before the file name.
What i was working with so far......sorry relatively new to this
Any Ideas?
I am trying to put the date in the file name. I am outputting a table to an excel file and trying to put the date before the file name.
What i was working with so far......sorry relatively new to this
Code:
Function testthisone()
Dim FilTim As String
Dim FilNam As String
Dim OutNam As String
FilTim = Date
FilNam = "C:\Users\userc\Desktop\TestAutoqry\HelloTest.xls"
DoCmd.OutputTo acOutputTable, "RTest MCR", "Excel97-Excel2003Workbook(*.xls)", FilNam, False, "", , acExportQualityPrint
End Function
Any Ideas?