Private Sub Command4_Click()
Set cnn = New ADODB.Connection
cnn.Open = "Provider=Microsoft.Jet.OLEDB.4.0; DataSource=a.mdb;Persist Security Info=False"
Set rs = New ADODB.Recordset
rs.Open "select * from b", cnn, adOpenStatic, adLockReadOnly
If rs.BOF And rs.EOF Then
MsgBox "请核实是否正确!"
Text3.Text = ""
Text3.SetFocus
Else
If rs.Fields("称号") = Text3.Text And rs.Fields("昵称") = Text2.Text Then
MsgBox "欢迎登录!"
form1.Hide
Form3.Show
Else
MsgBox "昵称输入有误!"
Text2.Text = ""
Text2.SetFocus
form1.Show
Form3.Hide
End If
End If
End Sub
人到中年有点甜
动漫人物
吃鸡游戏
随时随地看视频慕课网APP
相关分类