|
9#
楼主 |
发表于 2012-4-23 11:02:41
|
只看该作者
简 发表于 2012-4-22 22:35
我的白班代码是这样写的,
Call FindRecord(Me.Form, Me.Form, "机床")
但运行的效果如图,
白班:
Private Sub Form_Current()
On Error Resume Next
Call FindRecord(Me.Form, Me.Form, "机床")
Call FindRecord(Me.Form, Me.Parent.中班.Form, "机床")
Call FindRecord(Me.Form, Me.Parent.夜班.Form, "机床")
End Sub
中班:
Private Sub Form_Current()
On Error Resume Next
Call FindRecord(Me.Form, Me.Form, "机床")
Call FindRecord(Me.Form, Me.Parent.白班.Form, "机床")
Call FindRecord(Me.Form, Me.Parent.夜班.Form, "机床")
End Sub
夜班:
Private Sub Form_Current()
On Error Resume Next
Call FindRecord(Me.Form, Me.Form, "机床")
Call FindRecord(Me.Form, Me.Parent.中班.Form, "机床")
Call FindRecord(Me.Form, Me.Parent.白班.Form, "机床")
End Sub
|
|