设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 976|回复: 1
打印 上一主题 下一主题

[Access本身] 怎么将dat数据文件实时读入到我的Acess数据库表中

[复制链接]
跳转到指定楼层
1#
发表于 2009-6-21 09:14:30 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
我有一个实时数据采集的软件,它的数据文件格式为DAT,前四行都是
"TOA5","CR1000","CR1000","11649","CR1000.Std.14","CPU:GARD01020.CR1","63495","TenMin"
"TIMESTAMP","RECORD","batt_volt_Min","PTemp","Ta_Avg","RH_Avg","Pvapor_Avg","WS","WD","WD_std","Rain_Tot","T_109_Avg","Rs_Avg","LWS_Avg","LWS_RH","VWC","CO2_Avg","DirRad_Avg","Sunduration_Tot","Evap_Tot","Watlev"
"TS","RN","","","C","%","Kp","m/s","Deg","Deg","mm","C","w/m^2","","","","","","","",""
"","","Min","Smp","Avg","Avg","Avg","WVc,:","WVc,:","WVc,:","Tot","Avg","Avg","Avg","Smp","Smp","Avg","Avg","Tot","Tot","Smp"
前四行都是上面这样,关于采集记录的名称和度量单位等信息,下面是采集的数据记录
"2008-06-15 04:30:00",32199,12.56,18.51,17.93,94.8,1.947,0,0,0,0,22.98,0,256.8,1.068,0.526,364,0,0,0,68.3
"2008-06-15 04:40:00",32200,12.55,18.51,18.01,94.9,1.959,0,0,0,0.2,22.96,0,264.3,1.811,0.525,371.1,0,0,0.021,68.32  
请高手指教怎么将这样的数据文件实时读入到我的Acess数据库表中,先在这里先行谢过了!
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 分享淘帖 订阅订阅
2#
发表于 2009-6-21 10:21:09 | 只看该作者
改成后缀TXT,然后导入即可(可以用TransferText 方法)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-11-15 10:39 , Processed in 0.096970 second(s), 26 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表