function insertfile(tbname as string)
'示例:call insertfile("c:f1.txt")
Dim fs, f
Dim ssql as string
On Error Resume Next
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.Getfile(tbname)
ssql="insert into 阁下的数据表名称 (文件名,更新时间,最后访问时间) "
ssql=ssql & "values ('" & f.name & "',#" & f.DateLastModified & "#,#" & f.DateLastAccessed & "#)"
docmd.runsql ssql
end function