ConfusedNAccess
Technical User
anyone see what's wrong with this?
4: Sort the data by the random number and move the top 25 into a new table
strTableName = "tblRandom_" & Format(Date, "ddmmmyyyy")
strSQL = "SELECT tbltemp.LSO_ID, tbltemp.LSO, tbltemp.AM, tbltemp.BorrowerName, tbltemp.LastCalcDate, tbltemp.CalcType " & _
"INTO " & strTableName & " " & _
"FROM tbltemp INNER JOIN " & _
"QryLSOusers ON LastCalcs.LSO_ID = [QryLSOusers].UserIDMonitoring " & _
"WHERE (((tbltemp.LSO_ID)=[QryLSOusers]![UserIDMonitoring]))" & _
"ORDER BY tblTemp.randomnumber;"
4: Sort the data by the random number and move the top 25 into a new table
strTableName = "tblRandom_" & Format(Date, "ddmmmyyyy")
strSQL = "SELECT tbltemp.LSO_ID, tbltemp.LSO, tbltemp.AM, tbltemp.BorrowerName, tbltemp.LastCalcDate, tbltemp.CalcType " & _
"INTO " & strTableName & " " & _
"FROM tbltemp INNER JOIN " & _
"QryLSOusers ON LastCalcs.LSO_ID = [QryLSOusers].UserIDMonitoring " & _
"WHERE (((tbltemp.LSO_ID)=[QryLSOusers]![UserIDMonitoring]))" & _
"ORDER BY tblTemp.randomnumber;"