設計了一個窗口,用以儲存文件到"作業批改"表的"文件"列,然後在確認button的click事件寫了下面的代碼:
If Tables("作業批改").Current("文件") Is Nothing Then
messagebox.show("學生作業上傳失敗,請重新上傳.")
Else
Dim frm As winform.Form
frm = Forms("批改作業 - Writing 3 (Video)")
frm.open()
e.Form.Close()
End If
為甚麼按了button後, 無論有沒有儲存文件都會close form? Forms("批改作業 - Writing 3 (Video)")也沒有開啟.