| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 444 人关注过本帖
标题:[求助]帮忙调程序
取消只看楼主 加入收藏
tian200662
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2007-4-10
收藏
 问题点数:0 回复次数:1 
[求助]帮忙调程序

提示出错
实时错误 '-2147467259 (80004005)'
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server不存在或拒绝访问.

代码为:
Public FileName As String
Public BooksCallByTitle As Boolean
Public TotalIssueBook As Integer
Public RenewalCounter As Integer
Public MaxFineBal As Integer
Public MembershipDuration As Integer
Public MembershipFee As Integer
Public RenewalFees As Integer
Public strConnection As String

Public Sub LoadGlobalVariables()
Dim db As Connection
Dim adoprimaryrs As Recordset
Set db = New Connection
db.CursorLocation = adUseClient
db.Open strConnection 提示此行
Set adoprimaryrs = New Recordset
adoprimaryrs.Open "select TotalIssueBooks,RenewalCounter,MaxFineBal, MembershipDuration, MembershipFee, RenewalFees from GlobalVariables ", db, adOpenStatic, adLockOptimistic
TotalIssueBook = adoprimaryrs.Fields(0)
RenewalCounter = adoprimaryrs.Fields(1)
MaxFineBal = adoprimaryrs.Fields(2)
MembershipDuration = adoprimaryrs.Fields(3)
MembershipFee = adoprimaryrs.Fields(4)
RenewalFees = adoprimaryrs.Fields(5)
db.Close
End Sub

2007-04-10 10:44
tian200662
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2007-4-10
收藏
得分:0 

谢谢,我试试!

2007-04-11 10:16
快速回复:[求助]帮忙调程序
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016323 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved