找到答案 - 不得不從其他項目,幫助一些代碼:(!感謝this後)
Private Sub cmbSub_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[subID] = " & str(Nz(Me![cmbSub], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
,不得不修改它的ADP
Private Sub ChooseCo_AfterUpdate()
' Find the record that matches the control.
Dim rs As ADODB.Recordset
Set rs = Me.Recordset.Clone
rs.Find "[companyId] = " & Str(Nz(Me![ChooseCo], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
來源
2010-09-21 16:57:35
dmr
不,它不是」 t切換 – dmr 2010-09-21 16:44:04
您是否知道如何根據組合框中選擇的內容切換父窗體的當前記錄? – dmr 2010-09-21 16:48:39
@Hansup鏈接主字段不一定是一個字段,它可以是一個控件,並且控件甚至可以保存直線文本。我經常使用它。 – Fionnuala 2010-09-21 16:57:24