|
Private Sub Form_Load()
Const conNumGrouptings = 10 '组最大值
Dim rs As New ADODB.Recordset
Dim strSQL As String
Dim i As Integer
setHyperlinkEffect Me '超链接效果
' CommandBars("Web").Enabled = False '禁用Web工具栏
Me.txtCN_Name = strSoftCN_Name
Me.Caption = strSoftCN_Name
Me.txtEN_Name = strSoftEN_Name
Me.txtVersionNumber = strSoftVersionNumber
Me.txtCurrentUser = "当前用户:" & strCurrentUserName
Me.txtEntryTime = "登录时间:" & Now()
For i = 2 To conNumGrouptings
Me("Option" & i).Visible = False
Next
strSQL = "SELECT * FROM usysItems WHERE FItemNumber = 0 ORDER BY FGrouping"
rs.Open strSQL, CurrentProject.Connection, adOpenKeyset
If rs.RecordCount < 1 Then
Option1.Controls(0).Caption = "无可用项目"
Else
For i = 1 To rs.RecordCount
With Me("Option" & i)
.Visible = True
.Controls(0).Caption = Nz(rs![FItemText])
End With
rs.MoveNext
Next
End If
rs.Close
Set rs = Nothing
Me.grpTab = Nz(DLookup("[FGrouping]", "usysItems", "FItemNumber = 0 AND [FArgument] = '默认'"), 1)
Call grpTab_AfterUpdate
Me.FilterOn = True
End Sub
|
|