I have a table"AttendanceRecords" with fields:
Name - txt
IDNumber - num
Hours - num
AbsenceCode - txt
I have a second table "AbsenceCodes" with 2 fields with codes in them
shoptrac - txt
attendance - txt
I need to lookup the "absencecode" field in table "AttendanceRecords" in the systemcode field of "AbsenceCodes" and replace it with the corresponding code in the "attendance" field.
Tried this update query, it runs, no errors, but nothing changes in the "AttendanceRecords" table.
UPDATE AttendanceRecords SET absencecode = dlookup("attendance","AbsenceCodes", "absencecode = [AbsenceCodes]![shoptrac]");
What am I doing wrong?
Name - txt
IDNumber - num
Hours - num
AbsenceCode - txt
I have a second table "AbsenceCodes" with 2 fields with codes in them
shoptrac - txt
attendance - txt
I need to lookup the "absencecode" field in table "AttendanceRecords" in the systemcode field of "AbsenceCodes" and replace it with the corresponding code in the "attendance" field.
Tried this update query, it runs, no errors, but nothing changes in the "AttendanceRecords" table.
UPDATE AttendanceRecords SET absencecode = dlookup("attendance","AbsenceCodes", "absencecode = [AbsenceCodes]![shoptrac]");
What am I doing wrong?