以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]动态添加数据源 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=130044) |
-- 作者:kaiyu -- 发布时间:2019/1/11 16:28:00 -- [求助]动态添加数据源 Dim s As String = "Provider=Microsoft.Jet.OLEDB.4.0;Password="""";Data Source=" & ProjectPath & "Attachments\\attBackup.mdb;Persist Security Info=True"
If Connections.Contains("kq") 在项目添加数据源那里把这个字符串复制进去,是可以连接的,就是改了4个引号改成2个,为什么用动态添加数据源就不行呢 错误提示,从索引0处开始,初始化字符串的格式不符合规范 |
-- 作者:有点甜 -- 发布时间:2019/1/11 17:03:00 -- 看看
http://www.foxtable.com/webhelp/scr/0211.htm
|