
Originally Posted by
fspata
After thinking about my whole process, I've decided to try to simplify the form and just use the Check in/out spalsh form, as I call it, exactly that. I want to set either button they choose to TRUE; Open my other form, called Initial, enter their info and press submit. This is the code I am using on the submit button. I am getting runtime error 2465.
My Check In button runs a macro to OpenForm Initial Onclick, also the following code is in the Onclick event.
Private Sub Command8_Click()
Dim strTimein As String
strTimein = True
End Sub
This is my Submit button on the Initial form.
Private Sub Submit_Click()
If Forms![Splash]!Command8 = "TRUE" Then
'[Souls] = [Souls] + 1
Me![Check In] = Now()
Else
If Forms![Splash]!Command9 = "TRUE" Then
'[Souls] = [Souls] - 1
Me![Check Out] = Now()
End If
End If
RunCommand acCmdSaveRecord
Me.Requery
End Sub