G
Gaetanm via AccessMonster.com
I have a form that has a combo box EmployrrID it puls down the Id and
automaticly fills two text fields, The job nomber he is working on
and the description. there is a button on the form that executes a
Now command and puts that time is a text field called StopTime.
I have another button that should update an existing record but I keep
getting this Method of data.. error.
My code is below. Is the problem with the StopTime text field?
Option Compare Database
Private Sub Command21_Click()
Dim SQLstrg As String
SQLstrg = "UPDATE Clock_Table SET [StopDate] = #" & Me.StopDate & "# WHERE ((
[StopDate] Is Null) And ([EmployeeID] = " & Me.[EmployeeID].[Column(0)] & "))
;"
End Sub
Private Sub Command4_Click()
Me.StopDate = Now
End Sub
Any help would greatly be appreciated
Gaetanm
automaticly fills two text fields, The job nomber he is working on
and the description. there is a button on the form that executes a
Now command and puts that time is a text field called StopTime.
I have another button that should update an existing record but I keep
getting this Method of data.. error.
My code is below. Is the problem with the StopTime text field?
Option Compare Database
Private Sub Command21_Click()
Dim SQLstrg As String
SQLstrg = "UPDATE Clock_Table SET [StopDate] = #" & Me.StopDate & "# WHERE ((
[StopDate] Is Null) And ([EmployeeID] = " & Me.[EmployeeID].[Column(0)] & "))
;"
End Sub
Private Sub Command4_Click()
Me.StopDate = Now
End Sub
Any help would greatly be appreciated
Gaetanm