Module1.bas
资源名称:0123..rar [点击查看]
上传用户:naidiweb
上传日期:2013-08-15
资源大小:672k
文件大小:1k
源码类别:
软件设计/软件工程
开发平台:
WORD
- Attribute VB_Name = "Module1"
- Public adoCon As New ADODB.Connection
- Public adors As New ADODB.Recordset
- Public Sub main()
- Set adoCon = New ADODB.Connection
- adoCon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "clgl.mdb" & ";Persist Security Info=False"
- frmLogin.Show
- frmLogin.Text1.SetFocus
- End Sub
- Function valiText(keyIn As Integer, validateString As String, Editable As Boolean) As Integer
- Dim valiDatelist As String
- Dim keyOut As Integer
- If Editable = False Then
- valiDatelist = UCase(validateString) & Chr(8)
- Else
- valiDatelist = UCase(validateString)
- End If
- If InStr(1, valiDatelist, UCase(Chr(keyIn)), 1) > 0 Then
- keyOut = keyIn
- Else
- keyOut = 0
- Beep
- End If
- valiText = keyOut
- End Function