I am using ADOs in the initial coding of a VB datatbase application. I have created an ADO Command object named cndMyCommand and associated it with an ADO Connection object named cnnMyConnection. I want to issue the following UPDATE statement against the database:
UPDATE Employees SET Salary = Salary * 1.10
Is this the correct command to do this?
Set cndMyCommand.CommandText = “UPDATE Employees SET Salary = Salary * 1.10”
cndMyCommand.Execute
If it isn’t can you tell me what I’m doing wrong?
Thanks.
UPDATE Employees SET Salary = Salary * 1.10
Is this the correct command to do this?
Set cndMyCommand.CommandText = “UPDATE Employees SET Salary = Salary * 1.10”
cndMyCommand.Execute
If it isn’t can you tell me what I’m doing wrong?
Thanks.