用VB连Access做的数据库,Action X部件不能创建对象
<P>请教各位</P><P>郁闷ing</P>
不太懂你的意思,说的具体一点! <P>VB做一个课程管理系统</P><P>连Access的数据库</P><P>运行时</P><P>总是无法连接*.mdb文件</P><P>弹出窗口<b>Action X部件不能创建对象</b></P><P><b>但是在学校机房的机子上运行能连接的</b></P><P><b>是不是我的电脑什么程序没安装啊??很迷茫的</b></P><P>Private Sub CmdCancel_Click()
Unload Me
End Sub
Private Sub cmdOK_Click()
If Me.User = "111" And Me.Password = "111" Then
Call Login
Load FrmCourse
FrmCourse.Show
FrmCourse.Visible = True
Unload Me
'FlagOpen = True
Else
MsgBox "用户名或密码输入不正确!"
'FlagOpen = False
End If
End Sub</P><P>Private Sub Form_Load()
'MsgBox "SELECT 学生姓名 FROM 学生和课程 WHERE 学生成绩 > 80"
Dim strleft, strsingle, strencycoded As String
Dim intorigine, intencycoded As Integer
'SetWindowPos Me.hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
Open App.Path & "\" & "pwl.txt" For Input As #1
Line Input #1, Xorpwl$
Close #1
pwl = ""
For i = 1 To Len(Xorpwl)
strleft = Left(Xorpwl, i)
strsingle = Right(strleft, 1)
intorigine = Asc(strsingle)
intencycoded = intorigine Xor 7
strencycoded = Chr(intencycoded)
pwl = pwl + strencycoded
Next
End Sub</P><P>Public Property Get User() As String
User = Me.TextUser.Text
End Property</P><P>Public Property Let User(ByVal vNewValue As String)
Me.TextUser.Text = vNewValue
End Property</P><P>Public Property Get Password() As Variant
Password = Me.TextPassword.Text
End Property</P><P>Public Property Let Password(ByVal vNewValue As Variant)
Me.TextPassword.Text = vNewValue
End Property</P><P>Public Sub Login()
MsgBox "<FONT color=#ff0000>登录成功!请指定数据库文件</FONT>。"
Me.Hide
End Sub</P><P>这是login.frm的程序</P><P>制定的数据库就是连不上</P><P>不知道怎么???
</P> 不关程序的事,是你的dao或ado控件在系统里没注册,你把程序做成安装程序或手工regsvr32.exe c:\XXXXXXXXXXx 注册这个控件
[此贴子已经被作者于2004-6-3 14:31:15编辑过] <P>怎样手工注册</P><P>能具体的说说吗?</P> 上面不是有了吗?凡是ActiveX控件的使用要在开始-〉运行中输入regsvr32.exe x:\控件名.ocx ..................................
static/image/common/sigline.gif
51koo.net黑客论坛 soyangsyl.com搜羊娱乐新闻网
页:
[1]