Hello
I am using the DoCmd.TransferText via Access 2003 VBA to write a macro to import csv file that is named based on "filename mm-dd-yyyy" from a filepath. Everyday a different file is created in the filepath with changes to the date "mm-dd-yyyy"
Iwrote my macra via Access 2003 VBA as follows:
Sub TestTransferText()
DoCmd.TransferText acImportDelim, , _
"tblportfolio", "M:\AACP\AACP PORTFOLIO 09-19-2008" & Format$(Date, "mm-dd-yyyy") & ".csv", True
End Sub
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.TransferText via Access 2003 VBA to write a macro to import csv file that is named based on "filename mm-dd-yyyy" from a filepath. Everyday a different file is created in the filepath with changes to the date "mm-dd-yyyy"
Iwrote my macra via Access 2003 VBA as follows:
Sub TestTransferText()
DoCmd.TransferText acImportDelim, , _
"tblportfolio", "M:\AACP\AACP PORTFOLIO 09-19-2008" & Format$(Date, "mm-dd-yyyy") & ".csv", True
End Sub
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