设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 731|回复: 2
打印 上一主题 下一主题

[其它] 数据库连接问题.....................

[复制链接]
跳转到指定楼层
1#
发表于 2003-5-21 19:29:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Dim cnn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim strSQL As String
Dim StrConnection As String
Dim Strmsg As String

On Error GoTo End_
     
Set cnn = New ADODB.Connection
Set rs = New ADODB.Recordset

cnn.ConnectionString = "rovider =Microsoft.jet.oledb.4.0;data source=" & Application.CurrentProject.Path & "\mydata.mdb;User Id=adminassword= "
cnn.Open

End_:
    Debug.Print Err.Description
   
出错信息是:数据库被用户 'Admin' 使用计算机 'erer' 置为锁定或不能打开的状态。

各位大侠如何解决这个问题,多谢了!![em12]


[此贴子已经被作者于2003-5-21 11:30:46编辑过]

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 分享淘帖 订阅订阅
2#
发表于 2003-5-21 20:22:00 | 只看该作者
去掉密码试试:
cnn.connectionstring = "provider =microsoft.jet.oledb.4.0;data source=" & application.currentproject.path & "\mydata.mdb"
cnn.open
3#
 楼主| 发表于 2003-5-21 22:14:00 | 只看该作者
试了,不行。。。。
大虾们救命啊。。。。。。。。。。。。。。。。。。。。。。。。。。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-6-13 23:06 , Processed in 0.086783 second(s), 26 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表