ms Access从查询中的文件导入表 [英] ms Access import table from file in a query

查看:81
本文介绍了ms Access从查询中的文件导入表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过msAccess数据库查询从文件中导入表?

Is there a way to have a msAccess DB query import a table from file?

推荐答案

是的,只要数据是有组织的即可.您可以将VBA或宏与TransferText一起使用,也可以从菜单或功能区使用获取外部数据",这将指导您完成这些步骤.

Yes, as long as the data is organized. You can use VBA or a macro with TransferText or you can use Get External Data from the menu or ribbon, which will guide you through the steps.

编辑

您可以像这样从CSV导入新表或现有表,

You can import into a new or existing table from say, CSV, like so:

SELECT * INTO NewTable
FROM [Text;HDR=Yes;FMT=Delimited;Database=C:\Docs].Test.csv

这篇关于ms Access从查询中的文件导入表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆