G
Greg Clements
everyone,
i have an Access 2000 database that has to get
information from an Excel 2000.csv file and place the
information into a table i have already created from that
same file for future updates, i need this to be automated
by clicking a command button, i tried the
Transferspreadsheet method but come up with the error
code, External table is not in expected format, here is
the code i am using from the form with the command button:
DoCmd.TransferSpreadsheet acImport, "ADPAdjust",
Me.txtFileName, True, Me.txtworksheetname,
acSpreadsheetTypeExcel8
me.txtfilename is an unbound textbox that has the path
and file name since it will change by date every time it
is run, and Me.txtworksheetname is the name of the
worksheet.
any help would be great as i need to get this automated
ASAP, doing it manually it works fine by going to File,
import,etc...
thanks!!
Greg Clements
i have an Access 2000 database that has to get
information from an Excel 2000.csv file and place the
information into a table i have already created from that
same file for future updates, i need this to be automated
by clicking a command button, i tried the
Transferspreadsheet method but come up with the error
code, External table is not in expected format, here is
the code i am using from the form with the command button:
DoCmd.TransferSpreadsheet acImport, "ADPAdjust",
Me.txtFileName, True, Me.txtworksheetname,
acSpreadsheetTypeExcel8
me.txtfilename is an unbound textbox that has the path
and file name since it will change by date every time it
is run, and Me.txtworksheetname is the name of the
worksheet.
any help would be great as i need to get this automated
ASAP, doing it manually it works fine by going to File,
import,etc...
thanks!!
Greg Clements