I have a button to be pressed that should update the employees table, but the
problme i think is the condition statment "WHERE Employees.Title =" & x
Can any one fix it, and tell why it didnt work please
problme i think is the condition statment "WHERE Employees.Title =" & x
Can any one fix it, and tell why it didnt work please
Code:
Private Sub Toggle25_Click()
Dim SQL As String
Dim x As String
x = "Manager"
SQL = "UPDATE Employees " & _
"SET Employees.Title = 'Regional Sales Manager' " & _
"WHERE Employees.Title =" & x
DoCmd.RunSQL SQL
End Sub
Comment