syntax error update command

  • Thread starter Thread starter Van Eenoo Stefaan
  • Start date Start date
V

Van Eenoo Stefaan

Hey, who has an idea ?

The connection was placed in a common module, and works fine.

Where did I go wrong ?

'Command object creëren
Set cmm = New ADODB.Command
strsql = "Update tblTijdschriften " & _
" Set TijdschriftId = '" & txtTijdschriftId & "'," & _
" Tijdschriftnaam = '" & txtTijdschriftnaam & "'," & _
" WHERE tijdschriftId = '" & txtTijdschriftId & "';"
With cmm
..ActiveConnection = gcnn
..CommandType = adCmdText
..CommandText = strsql
..Execute options:=adExecuteNoRecords
..Execute
End With
 
Back
Top