I want to update "Fellow" field in tblTAvail_FPA from the records in qry_Fellow_unique
I built a query update (qryU_fellow) in ACCESS 2016. That's
UPDATE tblTAvail_FPA SET (FPA.Fellow = -1) FROM tblTAvail_FPA, qry_Fellow_unique
INNER JOIN tblTAvail_FPA, qry_Fellow_unique ON tblTAvail_FPA.TRef = qry_Fellow_unique.TRef
qry_Fellow_unique is shown below
"SELECT DISTINCT qry_Fellow.TRef
FROM qry_Fellow
WHERE fellow = -1"
e.g. tblTAvail_FPA has TRef(=1,2,3,4,5,6,7,8,9,10), qry_Fellow_Unique has TRef(=2,5,8,9)
I wonder that there's is a syntax error with query "qryU_fellow".
What would you suggest to build the query to avoid the syntax error
Thank you in advance.
I built a query update (qryU_fellow) in ACCESS 2016. That's
UPDATE tblTAvail_FPA SET (FPA.Fellow = -1) FROM tblTAvail_FPA, qry_Fellow_unique
INNER JOIN tblTAvail_FPA, qry_Fellow_unique ON tblTAvail_FPA.TRef = qry_Fellow_unique.TRef
qry_Fellow_unique is shown below
"SELECT DISTINCT qry_Fellow.TRef
FROM qry_Fellow
WHERE fellow = -1"
e.g. tblTAvail_FPA has TRef(=1,2,3,4,5,6,7,8,9,10), qry_Fellow_Unique has TRef(=2,5,8,9)
I wonder that there's is a syntax error with query "qryU_fellow".
What would you suggest to build the query to avoid the syntax error
Thank you in advance.