Could anyone tell me what's wrong with the following code and does anyone know how to use the single and double quotes in sql and how many i.e. to for a text box, variable etc.
Dim strSql As String
strSql = "UPDATE Clients SET"
strSql = strSql & " Clients!Name = " & Me.txtName
strSql = strSql & ", Clients!Surname = " & Me.txtSurname
strSql = strSql & ", Clients.SkillId = " & Me.cboSkill
strSql = strSql & " WHERE Clients.CliID = " & Me.txtCliID
strSql = strSql & ";"
docmd.RunSql strSql
The error i get is 3075 Syntax Error (missing operator)
Thank you.
Dim strSql As String
strSql = "UPDATE Clients SET"
strSql = strSql & " Clients!Name = " & Me.txtName
strSql = strSql & ", Clients!Surname = " & Me.txtSurname
strSql = strSql & ", Clients.SkillId = " & Me.cboSkill
strSql = strSql & " WHERE Clients.CliID = " & Me.txtCliID
strSql = strSql & ";"
docmd.RunSql strSql
The error i get is 3075 Syntax Error (missing operator)
Thank you.