All, using access 2010. I am using this code to make a folder upon exporting a query to excel:
It works however I need a space between the date and the folder. But when I use "\", it tells me path doesn't exist. Please help me get a space in the name when creating the folder. Thanks
Code:
sPath = "C:\Directory\mainfolder\" & Format(Date, "yyyy mm dd") & "folder"
MkDir sPath
It works however I need a space between the date and the folder. But when I use "\", it tells me path doesn't exist. Please help me get a space in the name when creating the folder. Thanks