求助如何将excel文件转成Access! 在access建表,中选择文件-获取外部数据-导入(第一行包含列标题,excel文件第一行为字段名)。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在access中执行这么一句vba就可以了 DoCmd.TransferSpreadsheet acImport, 8, "sheet1", "F:\Documents and Settings\Administrator\My Documents\book1.xls", True, ""最后两个参数是:是否第一行是字段名,转换的范围(如A1:E26)。你可以通过server中的控件运行之 uses adodb,.......with TAdoConnection.Create(self) do try connectionstring:='Provider=Microsoft.Jet.OLEDB.4.0;Data DataSource=aaa.mdb;' LoginPrompt:=false; execute('select * into aaa from [excel 8.0;database=d:\ccc.xls].aaa');finally free;end; cxgrid 修改保存问题. 【清明】之三,送友人 delphi 2007不规则出现编译错误(撞了鬼了) Thread Error: Access is denied(5) 请教组件制作,displayformat是怎么实现的? DBGRID的问题,我觉得有点难,请高手帮忙 delphi5+access问题,紧急!! 请教几个简单问题 各位大哥一个想不通的一维数组的问题? 论坛怎么了?上不来?我这是很不容易上来的!登录了N次!!散分!! 请问用ADOquery怎么写SQL语句?我想在SQL SERVER中建新表。 DELPHI5中数据保存问题?
DoCmd.TransferSpreadsheet acImport, 8, "sheet1", "F:\Documents and Settings\Administrator\My Documents\book1.xls", True, ""
最后两个参数是:是否第一行是字段名,转换的范围(如A1:E26)。
你可以通过server中的控件运行之
....
with TAdoConnection.Create(self) do try
connectionstring:='Provider=Microsoft.Jet.OLEDB.4.0;Data DataSource=aaa.mdb;'
LoginPrompt:=false;
execute('select * into aaa from [excel 8.0;database=d:\ccc.xls].aaa');
finally
free;
end;