Hello
I am using the DoCmd.TransferT ext to write a macro to import dynamically named file from a filepath.
My macro written as follows:
When I run the macro - Access prompt the below error:
"The Microsoft Jet engine could not find the object 'AACP PORTFOLIO 09-19-200809-233-2008.csv'. make sure the object exists and that you spells its name and path name correctly."
Checked the filepath - it is correct. I have checked the 3 files which I have named AACP PORTFOLIO 09-19-2008, AACP PORTFOLIO 09-22-2008 and AACP PORTFOLIO 09-23-2008; they are named correctly
I am not sure where I went wrong. Please advise
I am using the DoCmd.TransferT ext to write a macro to import dynamically named file from a filepath.
My macro written as follows:
Code:
Sub TestTransferText() DoCmd.TransferText acImportDelim, , _ "tblportfolio", "M:\AACP\AACP PORTFOLIO 09-19-2008" & Format$(Date, "mm-dd-yyyy") & ".csv", True End Sub
"The Microsoft Jet engine could not find the object 'AACP PORTFOLIO 09-19-200809-233-2008.csv'. make sure the object exists and that you spells its name and path name correctly."
Checked the filepath - it is correct. I have checked the 3 files which I have named AACP PORTFOLIO 09-19-2008, AACP PORTFOLIO 09-22-2008 and AACP PORTFOLIO 09-23-2008; they are named correctly
I am not sure where I went wrong. Please advise
Comment