我有多个csv文件(以分号分隔),列数相同(约616),行数不同。我想将每个文件导入Access中的不同表。我对macro / vba完全不熟悉。 我遇到了两个问题:
我希望我能解释清楚。
答案 0 :(得分:0)
您无法将包含600多列的文件导入Access。您可以尝试SQL Server。或者,您可以导入所需的特定字段。我严重怀疑你的数据集中需要600多个字段。
无论如何,您可以将特定字段从Excel导出到Access。
var array = [];
var headers = [];
$('#tbl1 th').each(function(index, item) {
headers[index] = $(item).html();
});
$('#tbl1 tr').has('td').each(function() {
var arrayItem = {};
$('td', $(this)).each(function(index, item) {
arrayItem[headers[index]] = $(item).text();
});
debugger;
array.push(arrayItem);
});
alert(array);
$("#gridContainer").dxDataGrid({
dataSource: array
});