What's wrong with this code? Howcome still got error?
Code
________________________________________________
Dim SQL As String
SQL = "Update Table1 ([Password],[Level])" & _
" IN 'G:\Documents and Settings\IA_TRAINING01\My Documents\odbc.mdb'" & _
" Set password = '" & Me.Text5 & "' " & _
" Where password = '" & Me.Text1 & "' And " & _
"level = '" & Me.Text3 & "'"
CurrentProject.Connection.Execute SQL <----------Error encounted
_________________________________________________
Code
________________________________________________
Dim SQL As String
SQL = "Update Table1 ([Password],[Level])" & _
" IN 'G:\Documents and Settings\IA_TRAINING01\My Documents\odbc.mdb'" & _
" Set password = '" & Me.Text5 & "' " & _
" Where password = '" & Me.Text1 & "' And " & _
"level = '" & Me.Text3 & "'"
CurrentProject.Connection.Execute SQL <----------Error encounted
_________________________________________________
Last edited: