I probably just need to put my glasses on, but I cannot figure this out!
I am trying to gather 5 of each associates records and put them into another table.
The table temp gets randomized. It also has around 40,000 records.
There are 36 associates in tblAssociates.
I am trying to gather 5 of each associates records and put them into another table.
The table temp gets randomized. It also has around 40,000 records.
There are 36 associates in tblAssociates.
Code:
strSQL = "SELECT TOP 5 * INTO tblTempAuditWork " & _
"FROM tblTemp " & _
"WHERE tbltemp.USR_NME IN(SELECT ID FROM tblAssociates)" & _
"ORDER BY tblTemp.RandomNumber;"