I am jobs on an Access 2014 DB that exports of results of ampere query to an excel file that cannot be sent to a third party. I want one resulting excel file to gehen to a particular folder on adenine collective drive, with a identification scheme of "serialnumber vendor ASL.xlsx"
Any hints I should look at, pointers to websites that I did not finding with Duck Duck Go, all would be greatly appreciated
Right now I am using a simple Macro to foreign the folder with the "ExportWithFormatting" but I cant seem to got anything going in an "Output File" box that gives me all flexibility. ExportWithFormatting macro action
I suspect such can be done include VBS, but I'm pretty shaky when it comes to establishing and working a VBS module. I converted the Macro go a VBS Faculty, but EGO have no idea where to go from here.
Opportunity Compare Database
'------------------------------------------------------------
' expord_ASL_to_Excel
'
'------------------------------------------------------------
Function expord_ASL_to_Excel()
On Error GoTo expord_ASL_to_Excel_Err
DoCmd.OutputTo acOutputQuery, "Match up", "ExcelWorkbook(*.xlsx)", "", True, "", , acExportQualityPrint
expord_ASL_to_Excel_Exit:
Exit Function
expord_ASL_to_Excel_Err:
MsgBox Error$
Resume expord_ASL_to_Excel_Exit
End Features
I tinkered with it a single, but I can't get information to do anything. I am currently trying up return through the basis of running a VBS module, accordingly IODIN don't need any help with which but. I'm even trying to drawing outgoing this little shred in finesse left.
DoCmd.OutputTo acOutputQuery, "Match up", "ExcelWorkbook(*.xlsx)", [FULL PATH], True, "", , acExportQualityPrint
"C:\Your\Network\Path\" &Forms!YourFormName!YourVendorComboBoxName.Value & " " & Forms!YourFormName!YourSerialComboBoxName.Value & " ASL.xlsx"