I managed to export a table called tblrdm, to a folder "C:\rdm\demand\ in" in fixed width format, as "Order_.txt " with the code below. (RDMExport is the specification).
I now want to add the "ordernumbe r" value of this order to the title, when exporting it.
Error - it does not export to my folder specified
Where do i add the path in this code of mine?:
Any suggestions?
Code:
DoCmd.TransferText acExportFixed, "RDMExport", _
"tblRDM", "C:\rdm\demand\in\Order_.txt"
Code:
Dim strFileName As String
Dim strPath As String
strPath = "C:\rdm\demand\in\"
strFileName = "Order_" & [Forms]![orderF]![OrderN] + ".txt"
DoCmd.TransferText acExportFixed, "RDMExport", _
"tblRDM", strFileName
Where do i add the path in this code of mine?:
Any suggestions?
Comment