Hi,
I am trying to write to an ID number to a field using the following SQL:
I get an error which says:
"Operation must use an updateable query"
Any ideas how I can get this to work? It seems as if I cannot use subselects in RunSQL?
I am trying to write to an ID number to a field using the following SQL:
Code:
DoCmd.RunSQL "UPDATE tblUser
SET sg_id = (SELECT SG_ID
FROM tblSource_Group
WHERE SG_name = txtSG
AND RAO_ID = (SELECT RAO_ID
FROM tblRAO
WHERE RAO_name = txtRAO
)
)"
I get an error which says:
"Operation must use an updateable query"
Any ideas how I can get this to work? It seems as if I cannot use subselects in RunSQL?