I need to create a text file and name it the current date. I then need to have the results of a query exported to that file.
If a file with the same name already exists then it has to overwrite it.
I have attempted this by using the Open, Freefile, Print and Close commands. Unfortunately I am stuck and don't know where to go from here.
Any advice or code examples would be much appreciated.
If a file with the same name already exists then it has to overwrite it.
I have attempted this by using the Open, Freefile, Print and Close commands. Unfortunately I am stuck and don't know where to go from here.
Any advice or code examples would be much appreciated.