如何解决“上传图片出现: ADODB.Stream 错误 '800a0bbc' 错误”

2010-12-03 10:47

ADODB.Stream 错误 '800a0bbc' 写入文件失败。

看起来是文件夹的权限问题,但权限设置上并没有问题,怎么修改也没解决。

搜索后发现网友的解决方案,果然好用,存档备查。


 
function makefilename(fname)
fname = now()
   fname = replace(fname,"-","")'时间格式
   fname = replace(fname," ","")
   fname = replace(fname,":","")
   fname = replace(fname,"PM","")
   fname = replace(fname,"AM","")
   fname = replace(fname,"","")
   fname = replace(fname,"","")
   makefilename=fname
end function
可是在VISTA系统中根本没有2009-2-25这种格式,所以肯定是因为这个时间格式的错误了。VISTA系统的时间格式是:2009/2/25这样的,所以将程序改成
function makefilename(fname)
   fname = now()
   fname = replace(fname,"/","")'时间格式
   fname = replace(fname," ","")
   fname = replace(fname,":","")
   fname = replace(fname,"PM","")
   fname = replace(fname,"AM","")
   fname = replace(fname,"","")
   fname = replace(fname,"","")
   makefilename=fname
endfunction
修改运行成功了。困扰多时的问题解决了。

 

点击微信扫一扫

最近留言

没有数据
扫描二维码访问
欢迎使用手机扫描二维码访问