The code is:
---
Public Function updateInterimkantoor(ByVal id As Integer, ByVal
naam As String)
command = New OleDb.OleDbCommand
command.CommandText = "update [interimkantoor] set
[interimkantoor - id] = " & id & ", set [naam] = '" & naam & "' where
[interimkantoor - id] = " & id & ")"
'command.CommandText = "update [azz] set [azt] = 'niks' where
[azi] = 1"
command.Connection = connection
Try
command.ExecuteNonQuery() ' <-- FAILS HERE
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Function
---
I already maked a insert function, and this works very nice
---
Public Function saveInterimkantoor(ByVal naam As String)
command = New OleDb.OleDbCommand
command.CommandText = "insert into interimkantoor(naam)
values('" & naam & "')"
command.Connection = connection
'Try
command.ExecuteNonQuery()
'Catch ex As Exception
' MsgBox(ex.ToString)
'End Try
End Function
---
Can someone help me?