black zero
Well-known member
- Joined
- Jan 15, 2009
- Messages
- 53
- Programming Experience
- Beginner
VB.NET:
cmd4 = New SqlCommand("insert into kelancaran " & _
"(no_transaction, transaction_date, ID_sopir, Nama_sopir, Shift, ATM_rp, " & _
" Kantor_rp, Dropping_rp, nama_details) values('" & labeltransaction.Text & "'," & _
" '" & datetimepckr.Text & "' , '" & txtIdSopir.Text & "' , '" & ComboShift.Text & "'," & _
" '" & textFromATM.Text & "' , '" & textFromKantor.Text & "'" & _
" '" & TextDropping.Text & "','" & CmbNamaDetails.Text & "')", con)
When I execute that code, my try catch trap captures this 'incorrect syntax near "'