如何解决运行时数据库路径报错问题 If Right(App.Path, 1) = "\" Then strPath = App.Path & "aa.mdb"Else strPath = App.Path & "\aa.mdb"End If 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 sConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & GetAppPath() & gconstrDBName & ";Persist Security Info=False"private function GetAppPath() as string Dim s As String s = App.Path If Right$(s, 1) <> "\" Then s = s & "\" GetAppPath = send function edyang(石头)是对的,你的MDB文件放在了根目录啊………… 如何在MSHFlexGrid 某一列放Combobox vb求助,更改 请VB菜单高手解决,分不够我++ WebBrowser与Word的问题 考勤排班处理问题,哪位给个方案? 有关集合与子集合初始化的问题,请高手帮忙!! 请问form 与 picturebox 的Cls方法用了哪些Api函数? 我想用Api函数代替cls方法。 大哥们 菜鸟问个UI问题 为什么这个语句执行没有效果?请高手帮忙啊!!! 已知wsdl文件请问这个soap什么调用 大家知道为什么Webbrowser要跟一个Timer控件吗?好象没什么必要嘛! 几个关于数组和路径显示问题。
private function GetAppPath() as string
Dim s As String
s = App.Path
If Right$(s, 1) <> "\" Then s = s & "\"
GetAppPath = s
end function
你的MDB文件放在了根目录啊…………