E
eric
Hi,
with the help of the q and a already present on the disc group, I tried to
figure out an UPDATE script for my my own db, but I just keep getting error
statements
In a table TABLE I want to update the fields of column SCORE from "0" to
"1", where the fields RESULT and RIGHTANSWER in the same record have the same
value. All the fields are numeric
This is what i've got so far:
Private Sub cmdButton_Click()
Dim dbs As Database
Dim strSQL As String
strSQL = " UPDATE tblTable" & _
" SET tblTable.Score = 1 " & _
" WHERE tblTable.Result = tblTable.RightAnswer "
dbs.Execute strSQL , dbFailOnError
End Sub
VB points at the dbs.Execute - line, giving error 91 on "With" not being
started.
Can anyone please help me solving the problem ?
Thank you in advance
with the help of the q and a already present on the disc group, I tried to
figure out an UPDATE script for my my own db, but I just keep getting error
statements
In a table TABLE I want to update the fields of column SCORE from "0" to
"1", where the fields RESULT and RIGHTANSWER in the same record have the same
value. All the fields are numeric
This is what i've got so far:
Private Sub cmdButton_Click()
Dim dbs As Database
Dim strSQL As String
strSQL = " UPDATE tblTable" & _
" SET tblTable.Score = 1 " & _
" WHERE tblTable.Result = tblTable.RightAnswer "
dbs.Execute strSQL , dbFailOnError
End Sub
VB points at the dbs.Execute - line, giving error 91 on "With" not being
started.
Can anyone please help me solving the problem ?
Thank you in advance