N
newt
I get a syntax error from the following On Click Event (for creation of a new
record):
sSQL = "insert into x_task (project_id, task_subcategory_id,
task_description, supervisor_id, lead_id, " & _
"junior_id, staffing_notes, task_status_id, hot_potato_id,
task_status_notes) " & _
"values (" & Me.lstProject.Value & "," & Me.lstTaskSubType.Value &
",'" & _
dbl_quotes(Me.txtTaskNotes) & "'," & Me.lstSupervisor.Value & "," &
Me.lstLead.Value & "," & intJunior & ",'" & _
dbl_quotes(Me.txtStaffNotes) & "'," & Me.lstTaskStatus.Value & "," &
inthotpotato & ",'" & _
dbl_quotes(Me.txtStatusNotes) & "');"
Can anyone see the source of the error? (intjunior and inthotpotato are
defined earlier.)
Thanks in advance.
record):
sSQL = "insert into x_task (project_id, task_subcategory_id,
task_description, supervisor_id, lead_id, " & _
"junior_id, staffing_notes, task_status_id, hot_potato_id,
task_status_notes) " & _
"values (" & Me.lstProject.Value & "," & Me.lstTaskSubType.Value &
",'" & _
dbl_quotes(Me.txtTaskNotes) & "'," & Me.lstSupervisor.Value & "," &
Me.lstLead.Value & "," & intJunior & ",'" & _
dbl_quotes(Me.txtStaffNotes) & "'," & Me.lstTaskStatus.Value & "," &
inthotpotato & ",'" & _
dbl_quotes(Me.txtStatusNotes) & "');"
Can anyone see the source of the error? (intjunior and inthotpotato are
defined earlier.)
Thanks in advance.