mails.txt的内容是邮件地址,每行一个,以换行为分隔符例如:    
      
[email protected]                                                               [email protected]                                                               ............                                                                    
mails.mdb里面已经建立了mails表,该表只有一个字段mail,用来存放邮件地址
请问在vb中应该如何编写程序将mails.txt中的邮件地址导入mails.mdb 
                                                                                
我需要最最快捷的方法,所以那种读一行写一行的方法就别提了,谢谢           
                                                                                
多谢大侠出手了,我需要源码

解决方案 »

  1.   

    用access自己的倒入功能
    文件-〉获得外部数据-〉导入
      

  2.   

    http://www.china-askpro.com/msg2/qa15.shtml
      

  3.   

    http://www.china-askpro.com/msg9/qa42.shtml
      

  4.   

    http://vbworld.sxnw.gov.cn/articles/database/vb21.htm
      

  5.   

    首先打开文件读,
    然后split到一个数组,
    循环数组添加到数据库。
      

  6.   

    open "c:\1.txt" for input as #1input line aa,msgbox aa'inster aaclose #1
      

  7.   

    up!
    我只知道一行行的方法,Sorry,要是有更快捷的方法我也想知道.
      

  8.   

    我自己搞定了select * into [Text;"D:\yourdir"].yourtxt.txt from yourtable这里dao是把txt所在目录看作数据库,把txt文件看作表
      

  9.   

    我自己搞定了  
     
    select  *  into  [Text;database=D:\yourdir].yourtxt.txt  from  yourtable  
     
    这里dao是把txt所在目录看作数据库,把txt文件看作表