以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  BeforeAttachFile 事件代码求助!  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=104737)

--  作者:lmlptj
--  发布时间:2017/8/4 10:00:00
--  BeforeAttachFile 事件代码求助!

有中有“附件”列,多文件型,在设置表事件BeforeAttachFile 代码中:



If e.DataCol.Name = "附件" Then
    e.SubFolder = ProjectPath & "Attachments\\儿童附件"
    e.FileName =  e.DataRow("身份证号") & e.DataRow("儿童姓名") & " " &  e.FileName         ‘身份号+姓名+空格+ 原文件名
End If


但最后添加文件时,出现“不支持给定的路径”?如何解决呢???

--  作者:有点甜
--  发布时间:2017/8/4 11:00:00
--  

弹出你的文件名看看,不能有特殊字符,如 \\/:*?<>| 之类的。

 

msgbox(e.FileName)