Hi,
I need to import 15 csv files into access every month. I have location of all those files listed in a table in the same access DB but i'm not sure how to incorporate them in a macro I have written to import one of those files:
Function Macro_TransferCsvFileTo_RatesTradeData()
On Error GoTo Macro_TransferCsvFileTo_RatesData_Err
DoCmd.TransferText acImportDelim, "Import_Spec_tbl_RatesData", "tbl_RatesData", "c:\Documents and Settings\aggaura\Desktop\WIP\XML\DB_JOH_FI_2011123 0.csv", True, ""
Macro_TransferCsvFileTo_RatesData_Exit:
Exit Function
Macro_TransferCsvFileTo_RatesData_Err:
MsgBox Error$
Resume Macro_TransferCsvFileTo_RatesData_Exit
End Function
where c:\Documents and Settings\aggaura\Desktop\WIP\XML\DB_JOH_FI_2011123 0.csv is the file name I want to be replaced by each of the file listed by me in the other access table.
Could someone help please?
Many Thanks