StatusBar不显示作者和权限
Private Sub MDIForm_Load()StatusBar1.SimpleText = " 今天是" & Year(Date) & "年" & Month(Date) & "月" & Day(Date) & "日 , 欢迎您使用加油站客户信息管理系统 !" & " 当前操作者:" & user111 & " 权限:" & sup
End Sub运行后不显示作者和权限,是什么问题啊
2013-05-11 15:56
2013-05-11 17:10
2013-05-11 17:51
2013-05-14 12:13
程序代码:Private Sub Command1_Click()
On Error GoTo finish
User = Text1.Text
Set mdbrs = cnn.Execute("select * from 密码表 where 用户名称='" & Text1.Text & "' and 密码='" & Text2.Text & "'")
If mdbrs.EOF = True Then
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
MsgBox "用户名和密码不正确!!"
Else
user111 = mdbrs.Fields(0)
sup = mdbrs.Fields(2)
If mdbrs.Fields(2) = "经理" Then
chair = True
End If
If mdbrs.Fields(2) = "管理员" Then
workman = True
End If
If mdbrs.Fields(2) = "客户" Then
cust = True
End If
Unload Me
MDIForm1.Show
End If
Exit Sub
finish:
MsgBox Err.Description
End Sub
2013-05-14 12:36
2013-05-14 14:25


2013-05-14 14:55