一旦表单已经在 Access 中打开,是否可以更改 Openargs 值?它仅在表单第一次打开时起作用。它失败的形式已经打开。
编辑:
我在表单的 onActivate 事件中有此代码
If Not IsNull(Me.OpenArgs) Then
Me.Recordset.FindFirst ("Id =" & Me.OpenArgs)
If Me.Recordset.NoMatch Then
MsgBox "ISOS not found"
End If
End If
Me.OpenArgs
包含使用此命令DoCmd.OpenForm "<Form_Name>", acNormal, , , , acWindowNormal, Forms!Lookup_Form!Id
打开主窗体的另一种窗体中的搜索结果。