Katya85S
Programmer
- Jul 19, 2004
- 190
I’m trying to import access query result to excel file and get “The type isn’t an installed data type or doesn’t support the operation you choose” error. In the code for data type parameters I’ve tried both living it blank and using “Microsoft Excel(*.xls)”. My code is:
strDirectory = "\\ServerName\ShareName\FolderName\OutputFile.xls"
DoCmd.TransferDatabase acImport, , , acQuery, "qryQueryName", strDirectory, 0
What do i do wrong?
Thank you all in advance.
strDirectory = "\\ServerName\ShareName\FolderName\OutputFile.xls"
DoCmd.TransferDatabase acImport, , , acQuery, "qryQueryName", strDirectory, 0
What do i do wrong?
Thank you all in advance.