OK, next question :) Once the form sub sub form is open I am trying to update a table based on a double click selection. - employee may have multiple claims, they need to select one to attach charges to by double clicking one of the records in the opened sub form. I have been trying to get the following to work. (forum is wrapping the lines)
but the WHERE clause is blowing it up. Any ideas?
Code:
Private Sub Form_DblClick(Cancel As Integer) Dim stSQL As String stSQL = "UPDATE UCT_Data SET UCT_Data.pkUnemploymentDataID = " & Me.pkUnemploymentDataID & ", UCT_Data.CreateFile = 'Yes' WHERE UCT_Data.UCT_Data_ID = " & Forms.UCT_Data_sub.UCT_DATA_ID & ";" DoCmd.SetWarnings False MsgBox stSQL 'DoCmd.RunSQL stSQL DoCmd.SetWarnings True End Sub
Comment