找到答案 - 不得不从其他项目,帮助一些代码:(!感谢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