新手 ,请教一个VB程序问题,请大家帮帮忙
最近写一个SQL的课程设计,是用VB写的,代码写的差不多了,是 客房信息管理系统Option Explicit
Public conn As ADODB.Connection
Public mrc As ADODB.Recordest
Public cmd As
Public user_ID As String
Public flagTedit As Boolean
Public flagRedit As Boolean
Public flagBedit As Boolean
Public flagCedit As Boolean
Public flagSedit As Boolean
Public gintCmode As Integer
Public gintTmode As Integer
Public gintRmode As Integer
Public gintBmode As Integer
Public Sub DatabaseOpen()
Dim ConnecString As String
Set conn = New ADODB.Connection
ConnectString = "Provider=sqloledb;integrated security=sspi;Data Source=YY-PC;Initial Catalog=Hotel"
conn.CursorLocation = adUseClient
conn.Open ConnectString
Set cmd = New
cmd.ActiveConnection = conn
End Sub
Public Sub DatabaseClose()
If conn.State = 1 Then
conn.Close
End Sub
运行的时候在红字标出的地方老是出错
会出现“用户定义类型未定义”Public mrc As ADODB.Recordest
到底该怎么办?
说要应用的控件我也引用了,还是出现这个问题
请各位帮帮忙,有点急