Below code is working well.
Public Function exportCSV()
DoCmd.TransferText acExportDelim, , "Demographics", C:\Users\Documents\Demographics.csv"
End Function
But I want the file to be exported to SharePoint Folder instead locally. I tried using the SharePoint folder path but whenever I run, it gives me this 2825 error: The file does not exist, or you do not have read access to the file. I have access to the SharePoint but I am not sure why this error comes. Please anyone could explain. Any help would be appreciated.