将现有Excel记录集复制到Access表

时间:2015-12-17 15:27:36

标签: excel vba

我正在寻找一种优雅的方法来将现有的Excel记录集(从另一个数据库创建,而不是复制到Excel工作表)转储到另一个Access数据库中。

我知道我可以遍历记录集中的所有行,但我正在寻找一种更简单的方法。

1 个答案:

答案 0 :(得分:0)

根据您的评论,我认为您的最佳解决方案将是ms-access中的to this question

关联表后,您可以使用linked table

在访问权限中运行宏来轻松导出您想要的内容

代码如下:

# BLOCK BAD BOTS
<IfModule mod_setenvif.c>
Options +FollowSymlinks  
RewriteEngine On  
RewriteBase /  

 SetEnvIfNoCase User-Agent "^$" keep_out
 SetEnvIfNoCase User-Agent ^$ keep_out
 SetEnvIfNoCase User-Agent (casper|cmsworldmap|diavol|dotbot)   keep_out
 SetEnvIfNoCase User-Agent (flicky|ia_archiver|jakarta|kmccrew) keep_out
 SetEnvIfNoCase User-Agent (libwww|planetwork|pycurl|skygrid)   keep_out
 SetEnvIfNoCase User-Agent (purebot|comodo|feedfinder) keep_out
 SetEnvIfNoCase User-Agent (scanner|crawl|robot|spider) keep_out
 <Limit GET POST PUT>
  Order Allow,Deny
  Allow from all
  Deny from env=keep_out
 </Limit>
</IfModule>


RewriteCond %{HTTP_REFERER} ^-?$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^-?$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^bot\*$ [OR]
RewriteCond %{REQUEST_METHOD} !^HEAD$ [OR] 
RewriteCond %{REQUEST_URI} !^/robots\.txt
RewriteRule .* - [F,L]
相关问题