D
DS
This statement is suppose to find an "Employee" in the "Time" table and
if the "IN" box is checked yes open the "Tables" form, else it opens the
"PayPad" form . I keep getting an Error on the FROM part.
Private Sub Command26_Click()
Dim mySQL As String
mySQL = " SELECT [EmployeeID],[IN] " & _
" FROM TIME " & _
" WHERE [EmployeeID]= " & Me.TextD & " """
DoCmd.RunSQL (mySQL)
If [Time].[IN] = -1 Then
DoCmd.OpenForm "Tables"
Else:
DoCmd.OpenForm "PayPad"
End If
End Sub
Thanks
DS
if the "IN" box is checked yes open the "Tables" form, else it opens the
"PayPad" form . I keep getting an Error on the FROM part.
Private Sub Command26_Click()
Dim mySQL As String
mySQL = " SELECT [EmployeeID],[IN] " & _
" FROM TIME " & _
" WHERE [EmployeeID]= " & Me.TextD & " """
DoCmd.RunSQL (mySQL)
If [Time].[IN] = -1 Then
DoCmd.OpenForm "Tables"
Else:
DoCmd.OpenForm "PayPad"
End If
End Sub
Thanks
DS