E
Eric
Hi guru's. A simple yet frustrating question (at least for
me). Right now, I have in my program that when a user
clicks exit, it closes out of the form. Recently, I have
added a request that takes into account that when a user
clicks on the exit button, that it asks if the user has
ended their test. If yes, then I want to put the date in
the EndDate field of my AnalysisTestDate table. I have
code, but I am unsure if this is correct.
Private Sub ctrlExit_Click()
Dim msg1 As Integer
msg1 = MsgBox("Is the Test Number " &
Me.TestGroupID.Value & " complete?", vbYesNo)
If msg1 = vbYes Then
AnalysisTestDate.EndDate.Value = Now()
End If
DoCmd.Close , , acSaveNo
End Sub
Thanks in advance.
me). Right now, I have in my program that when a user
clicks exit, it closes out of the form. Recently, I have
added a request that takes into account that when a user
clicks on the exit button, that it asks if the user has
ended their test. If yes, then I want to put the date in
the EndDate field of my AnalysisTestDate table. I have
code, but I am unsure if this is correct.
Private Sub ctrlExit_Click()
Dim msg1 As Integer
msg1 = MsgBox("Is the Test Number " &
Me.TestGroupID.Value & " complete?", vbYesNo)
If msg1 = vbYes Then
AnalysisTestDate.EndDate.Value = Now()
End If
DoCmd.Close , , acSaveNo
End Sub
Thanks in advance.