有人可以幫助我。 這聽起來很簡單,但我不知道是否可以完成。 的想法是:如果存在的參數比打開該記錄,否則打開一個新的輸入數據。如何根據參數打開一種或另一種形式?
這是我的嘗試,但我甚至無法運行它。
Private Sub Form_Load()
If (Me.Type = Act _
and Me.Title <> null _
and section <> null) _
or Me.Type in ('Proposed','Final')
and Me.Rule <> null
Then
Docmd.OpenForm "F_Eval" (but open that specific f_Eval)
Else
Docmd.OpenForm "F_NewEval" (to enter new record)
End If
End Sub