以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  登录加载数据库问题  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=124971)

--  作者:15528900289
--  发布时间:2018/9/17 14:31:00
--  登录加载数据库问题
老师你好,我设置了加载数据库代码,启动项目时候必须按照ctrl键才能进入登录界面,选择数据库后面所有都正常,不按住ctrl就提示数据库链接出错。无法进入到登录界面。
If e.name = "计划单处理" Then
    e.C & e.ProjectPath & "Attachments\\"& e.User.ExtendedValues("数据库") &".MDB;Persist Security Info=False"    \'加载项目文件下\\Attachments\\选定的数据库
End If


--  作者:15528900289
--  发布时间:2018/9/17 14:33:00
--  
If e.name = "计划单处理" Then
    e.C & e.ProjectPath & "Attachments\\"& e.User.ExtendedValues("数据库") &".MDB;Persist Security Info=False"    \'加载项目文件下\\Attachments\\选定的数据库
End If

刚才的代码没复制对,还有我发布问题一直都没法插入图片。这上面插入图片只能插入网络图片吗

--  作者:15528900289
--  发布时间:2018/9/17 14:34:00
--  
以下内容为程序代码:

1 If e.name = "计划单处理" Then
2 e.C & e.ProjectPath & "Attachments\\"& e.User.ExtendedValues("数据库") &".MDB;Persist Security Info=False" \'加载项目文件下\\Attachments\\选定的数据库
3 End If
不能直接发布代码啊?

--  作者:15528900289
--  发布时间:2018/9/17 14:35:00
--  
我几种方法发布的代码,发布后都把有些内容给隐藏了,咋回事。 
--  作者:有点甜
--  发布时间:2018/9/17 14:35:00
--  

1、e.User.ExtendedValues是内置的登陆窗口才有的东西,如果你不是用内置的登陆窗口,你不能用这个。

 

2、你可以尝试别的方式 http://www.foxtable.com/webhelp/scr/0682.htm

 

或者 http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=101689&replyID=698441&skin=1