Locopete99
Registered User.
- Local time
- Yesterday, 19:56
- Joined
- Jul 11, 2016
- Messages
- 163
Hi Guys,
Can someone take a look at the below?
I cant seem to get the export to work.
It works as far as creating the directory and then stops. No error message or any issues but also there is no exported excel file in the folder!
Can someone take a look at the below?
I cant seem to get the export to work.
It works as far as creating the directory and then stops. No error message or any issues but also there is no exported excel file in the folder!
Code:
DirName = "B:\" & fOSUserName & "\Register Report\Outdebt\"
strpath = DirName & "outdebt.xlsx"
If Dir(DirName, vbDirectory) = "" Then
MkDir DirName
Else
End If
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, "Qry_debtout", strpath, True