G
Guest
There is something wrong with the following query and while I have managed
Add and Delete statements along similar lines I cannot get this one to work.
UPDATE tblEmployee SET tblEmployee.LName = (SELECT LName FROM
EditupdateEmployee IN 'D:\COFUpdateFile.mdb' WHERE
EditupdateEmployee.EmployeeId="0070037")
WHERE [tblEmployee].[EmployeeId]="0070037";
This returns the expected value (Taylor)
SELECT LName FROM EditupdateEmployee IN 'D:\COFUpdateFile.mdb' WHERE
EditupdateEmployee.EmployeeId="0070037";
And this will perform an update
UPDATE tblEmployee SET tblEmployee.LName = "Smith"
WHERE [tblEmployee].[EmployeeId]="0070037";
I'm sure the answer is staring at me but I just can't see it.
Cheers
Teewan
Add and Delete statements along similar lines I cannot get this one to work.
UPDATE tblEmployee SET tblEmployee.LName = (SELECT LName FROM
EditupdateEmployee IN 'D:\COFUpdateFile.mdb' WHERE
EditupdateEmployee.EmployeeId="0070037")
WHERE [tblEmployee].[EmployeeId]="0070037";
This returns the expected value (Taylor)
SELECT LName FROM EditupdateEmployee IN 'D:\COFUpdateFile.mdb' WHERE
EditupdateEmployee.EmployeeId="0070037";
And this will perform an update
UPDATE tblEmployee SET tblEmployee.LName = "Smith"
WHERE [tblEmployee].[EmployeeId]="0070037";
I'm sure the answer is staring at me but I just can't see it.
Cheers
Teewan