Here is my code
Function TransferMultiples()
On Error GoTo TransferIn_Err
DoCmd.TransferSpreadsheet acImport, 10, "invoices", "C:\pcsas_export_files\Quest\vaclients_invoices_\.xls", True, ""
TransferIn_Exit:
Exit Function
TransferIn_Err:
MsgBox Error$
Resume TransferIn_Exit
End Function
I am getting an invalid path error message when I run this function. The spreadsheets are located in
C:\pcsas_export_files\Quest\ The spreadsheets have names like
invoices_20020430.xls
invoices_20030430.xls
invoices_20040430.xls
Any ideas of how I can improve my path? In addition is there a way to accomplish this same thing using an access macro. I can then convert it to vba code
Function TransferMultiples()
On Error GoTo TransferIn_Err
DoCmd.TransferSpreadsheet acImport, 10, "invoices", "C:\pcsas_export_files\Quest\vaclients_invoices_\.xls", True, ""
TransferIn_Exit:
Exit Function
TransferIn_Err:
MsgBox Error$
Resume TransferIn_Exit
End Function
I am getting an invalid path error message when I run this function. The spreadsheets are located in
C:\pcsas_export_files\Quest\ The spreadsheets have names like
invoices_20020430.xls
invoices_20030430.xls
invoices_20040430.xls
Any ideas of how I can improve my path? In addition is there a way to accomplish this same thing using an access macro. I can then convert it to vba code