G
Gaetanm via AccessMonster.com
I'm having difficulty in figuring out how to make my existing SQL string to
up date my table for the bound text box. The text box is comments
on the activity the employee has done on this pericular job. The job may take
6 months of activities to complete
The SQL string works except for this last pice.
The text box is [txtJob_activity]
The table is [Clock_Table]
The Column is [Activity] the property is set to Memo
The following is the SQL
Private Sub Record_Click()
DoCmd.SetWarnings False
Dim SQLstrg As String
SQLstrg = "UPDATE Clock_Table SET [StopDate] = # " & Me.StopDate & " #WHERE (
([StopDate] Is Null) And ([EmployeeID] = " & Me.[EmployeeID] & "));"
DoCmd.RunSQL SQLstrg
DoCmd.SetWarnings True
Me.cboEmployeeID = Null
Me.StopDate = Null
Me.txtJob_Activity = Null
DoCmd.OpenForm "frmclock_start_table"
DoCmd.SelectObject acForm, "frmclock_start_table"
End Sub
Any suggestions
Gaetanm
up date my table for the bound text box. The text box is comments
on the activity the employee has done on this pericular job. The job may take
6 months of activities to complete
The SQL string works except for this last pice.
The text box is [txtJob_activity]
The table is [Clock_Table]
The Column is [Activity] the property is set to Memo
The following is the SQL
Private Sub Record_Click()
DoCmd.SetWarnings False
Dim SQLstrg As String
SQLstrg = "UPDATE Clock_Table SET [StopDate] = # " & Me.StopDate & " #WHERE (
([StopDate] Is Null) And ([EmployeeID] = " & Me.[EmployeeID] & "));"
DoCmd.RunSQL SQLstrg
DoCmd.SetWarnings True
Me.cboEmployeeID = Null
Me.StopDate = Null
Me.txtJob_Activity = Null
DoCmd.OpenForm "frmclock_start_table"
DoCmd.SelectObject acForm, "frmclock_start_table"
End Sub
Any suggestions
Gaetanm