|
Question : Help using Function to Get Current User's Desktop: Access 2003 VB
|
|
Hello Experts,
I am using the transfertext method to export data into a text file. I would like to save the file to current user's desktop.
I found this post which seems to be exactly what I'm looking for, but I am having trouble implementing it.
http://www.experts-exchange.com/Microsoft/Development/MS_Access/Access_Coding-Macros/Q_23060854.html
I am exporting the data from an OnClick Event of a form. However, when I try to use the code from the previous post in the form's module I get an error.
I would like to implement this funtion as follows: DoCmd.TransferText acExport, acExportDelim, "MyTable", GetSpecialfolder(Desktop) & "\MyExportFile.csv"
I'm obviously new to this. Can someone give me detailed instructions on where to place the function that retrieves the current user's desktop.
|
|
Answer : Help using Function to Get Current User's Desktop: Access 2003 VB
|
|
Any standard module should do. It needs to go after Othe Options statements at the top. It works here ok
|
|
|
|