andy5179
Aug 18, 2005, 01:34 PM
I'm trying to update a table in Microsoft Access with the following SQL:
UPDATE tblLastLDAP, tblGenex1 SET tblGenex1.SURROGATEID = Left([tblLastLDAP]![Last],6) & Int((99-1+1)*Rnd()+1);
I want the records to each be set to a number between 1 and 99 (+ the beginning info), but the result of the SQL above sets all of the records to the same number.
How do I tell Access to process each record separately?
Thanks!
UPDATE tblLastLDAP, tblGenex1 SET tblGenex1.SURROGATEID = Left([tblLastLDAP]![Last],6) & Int((99-1+1)*Rnd()+1);
I want the records to each be set to a number between 1 and 99 (+ the beginning info), but the result of the SQL above sets all of the records to the same number.
How do I tell Access to process each record separately?
Thanks!