Hello,
I am working in Access 2003. I am trying to run a simple update query: update employee ID based on last name and first name. The problem is that the query updates 7 records out of over 300, leaving the rest null. I can't figure out why that is. All the first and last names come from the same excel spreadsheet which I imported to create the table and all of them are formatted the same. The sql is below. Can anyone shed some light on why an update query could behave this way? Thank you!
I am working in Access 2003. I am trying to run a simple update query: update employee ID based on last name and first name. The problem is that the query updates 7 records out of over 300, leaving the rest null. I can't figure out why that is. All the first and last names come from the same excel spreadsheet which I imported to create the table and all of them are formatted the same. The sql is below. Can anyone shed some light on why an update query could behave this way? Thank you!
PHP:
UPDATE EmployeeTask LEFT JOIN EMPLOYEE_TEMP ON (EmployeeTask.LastName=EMPLOYEE_TEMP.LastName) AND (EmployeeTask.FirstName=EMPLOYEE_TEMP.FirstName) SET EmployeeTask.EMPLID = EMPLOYEE_TEMP.EMPLID;