當窗體已經在Access中打開後,是否可以改變Openargs的值?它只在表單第一次打開時有效。它的失敗形式已經公開。Openargs當窗體已經打開
編輯:
我在形式
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
的onActivate情況下,本代碼包含在使用此命令DoCmd.OpenForm "<Form_Name>", acNormal, , , , acWindowNormal, Forms!Lookup_Form!Id
開拓的主要形式,另一種形式的搜索結果。
不,但您爲什麼需要?你不能分配給其他變量嗎? – Fionnuala
我如何將它分配給另一個變量?我有一個包含搜索功能的表單,然後打開主結果作爲打開的參數傳遞結果。 – Omar
你用OpenArgs做什麼?你想傳遞一個新的搜索字符串嗎?請張貼一些代碼。 – Fionnuala