Vb6 如何自动更新表格?

Vb6 如何自动更新表格?,vb6,Vb6,使用vb6和access2003 代码 从上面的代码am转换文本文件到mdb数据库,上面的代码工作正常 我从ConvTemp文件夹中获取一个文本文件。在该文件夹中,每隔2、5或10分钟创建一个文本文件,该文件的名称与其他软件不同 每当从ConvTemp文件夹新创建文本文件时,我每分钟都想自动更新一个表 比如说 ConvTemp Folder 101.txt The text file should update in the table1, then 101.txt should delet

使用vb6和access2003

代码

从上面的代码am转换文本文件到mdb数据库,上面的代码工作正常

我从ConvTemp文件夹中获取一个文本文件。在该文件夹中,每隔2、5或10分钟创建一个文本文件,该文件的名称与其他软件不同

每当从ConvTemp文件夹新创建文本文件时,我每分钟都想自动更新一个表

比如说

ConvTemp Folder

101.txt

The text file should update in the table1, then 101.txt should delete in the convTemp Folder.

After new file is appearing in ConvTemp Folder

222.txt

This text file also should update in the table1, then 222.txt should delete in the convTemp Folder 

So on…,
.txt文件出现时,它将在表1中更新,然后删除该txt文件

当我运行程序时,在表1中更新并自动删除文本文件应该可以

如何编写代码自动更新,删除文本文件


需要VB6代码帮助。

只需在屏幕上创建一个计时器,将其间隔设置为60000,并在计时器的勾号事件中,检查目录中是否有新文件;并对其进行处理

ConvTemp Folder

101.txt

The text file should update in the table1, then 101.txt should delete in the convTemp Folder.

After new file is appearing in ConvTemp Folder

222.txt

This text file also should update in the table1, then 222.txt should delete in the convTemp Folder 

So on…,