gpt4 book ai didi

vba - 从 csv 导入到 ms Access 表

转载 作者:行者123 更新时间:2023-12-04 07:05:04 25 4
gpt4 key购买 nike

有些人可以为我提供一个 VBA 宏来将数据从 CSV 文件导入到 ms access 表中吗?

最佳答案

INSERT INTO tblSomeTable ( [TRADE DATE], REP, REPID, [ACCOUNT/POLICY],
CUSTOMER, [REP# COMPANY], [PRODUCT NAME], QUANTITY, [FACE AMOUNT],
[GROSS COMMISSION], [CUSTOMER SSN] )
SELECT [TRADE DATE], REP, REPID, [ACCOUNT/POLICY],
CUSTOMER, [REP# COMPANY], [PRODUCT NAME], QUANTITY, [FACE AMOUNT],
[GROSS COMMISSION], [CUSTOMER SSN]
FROM [Text;
FMT=Delimited;
HDR=YES;
CharacterSet=437;
DATABASE=C:\Documents And Settings\spauldb\Desktop].Transactions_Jan1_to_Jan30.csv
WHERE [TRADE DATE] Is Not Null;

关于vba - 从 csv 导入到 ms Access 表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1236901/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com