Hi RG--
Thanks much for your prompt help! I cut and pasted your code into the SQL view so it now looks like this:
Code:
SELECT [Unduplicated Employee Records].EMPLID, [Unduplicated Employee Records].[EMPL RCD], [Unduplicated Employee Records].[BANNER ID], [Unduplicated Employee Records].[FIRST NAME], [Unduplicated Employee Records].MIDDLE, [Unduplicated Employee Records].[LAST NAME], [Unduplicated Employee Records].socvb, [Unduplicated Employee Records].Position, [Unduplicated Employee Records].Position_Descrip
FROM [Unduplicated Employee Records];
Dim MyVariable
MyVariable = DLookUp("[SOC code]","[SOC- Position Code Link Table]","[Unduplicated Employee Records].Position = """ & [SOC- Position Code Link Table].[Position] & """")
and I get a "characters found after end of sql statement error"
Where should I put this code? and, next step, how do I move the data from myvariable to [unduplicated employee records].socvb in the right place?
No hurry on this--I'll be back to my desk in about 90 minutes.
Thanking you much!
V