在白班窗体的成为当前时间中写:
Private Sub Form_Current()
Dim n As Long
Dim i As Long
Dim frm As Form
On Error Resume Next
Set frm = Me.Parent.Child2.Form
n = Me.机床.Value
For i = 1 To frm.RecordsetClone.RecordCount
frm.SelTop = i
If frm.Controls("机床").Value = n Then
frm.SelWidth = 9
Exit For
End If
Next
End Sub