hello everybody,
I have this strange syntaxis error that i can 't seem to fix.
This is my code:
Dim strSQL As String
'record updaten
strSQL = "UPDATE " & mconT_Categorie & " SET "
strSQL &= mconA_ParentID & " = " & node.ParentID & ", "
strSQL &= mconA_Text & " = '" & node.Text & "', "
strSQL &= mconA_Icon & " = '" & node.Icon & "', "
strSQL &= mconA_BackGround & " = '" & node.backGround & "', "
strSQL &= mconA_passwd & " = '" & node.Password.Password & "', "
strSQL &= mconA_alwaysAsk & " = " & node.Password.AlwaysAskPassword & ", "
strSQL &= mconA_WrongPasswords & " = " & node.Password.WrongPasswordCount & ", "
strSQL &= mconA_TimesOpened & " = " & node.Statistics.TimesOpened & ", " <<====== ERROR
strSQL &= mconA_created & " = #" & node.Statistics.Created & "#, "
strSQL &= mconA_LastUsed & " = #" & node.Statistics.LastUsed & "# "
strSQL &= " WHERE " & mconA_ID & " = " & node.ID & ";"
cnn.Execute(strSQL)
if I leave the marked line out, it works perfectly.
But if I put it in, it doesn 't work anymore.
The name in the constant mconA_TimesOpened is wright because I use it more in the program.
The datatype in the program and in the DB is exactly the same as the other integers.
It would be greatly appreciated if anyone could find the error for me.
To search or to post - that is the question.
To search first and to post later. THAT is the answer.
I have this strange syntaxis error that i can 't seem to fix.
This is my code:
Dim strSQL As String
'record updaten
strSQL = "UPDATE " & mconT_Categorie & " SET "
strSQL &= mconA_ParentID & " = " & node.ParentID & ", "
strSQL &= mconA_Text & " = '" & node.Text & "', "
strSQL &= mconA_Icon & " = '" & node.Icon & "', "
strSQL &= mconA_BackGround & " = '" & node.backGround & "', "
strSQL &= mconA_passwd & " = '" & node.Password.Password & "', "
strSQL &= mconA_alwaysAsk & " = " & node.Password.AlwaysAskPassword & ", "
strSQL &= mconA_WrongPasswords & " = " & node.Password.WrongPasswordCount & ", "
strSQL &= mconA_TimesOpened & " = " & node.Statistics.TimesOpened & ", " <<====== ERROR
strSQL &= mconA_created & " = #" & node.Statistics.Created & "#, "
strSQL &= mconA_LastUsed & " = #" & node.Statistics.LastUsed & "# "
strSQL &= " WHERE " & mconA_ID & " = " & node.ID & ";"
cnn.Execute(strSQL)
if I leave the marked line out, it works perfectly.
But if I put it in, it doesn 't work anymore.
The name in the constant mconA_TimesOpened is wright because I use it more in the program.
The datatype in the program and in the DB is exactly the same as the other integers.
It would be greatly appreciated if anyone could find the error for me.
To search or to post - that is the question.
To search first and to post later. THAT is the answer.