Trying to Get SELECT TOP to work with Parameter in ACCESS
问题 This is building on some code I got the other day (thanks to peterm). I am now trying to select the TOP X number of results after calculations on the query. The X can range from 1 to 8 depending on the number of results per player. This is the code I have but I get a syntax error when I try to run it. SELECT PlayerID , RoundID , PlayedTo , (SELECT Count(PlayerID) FROM PlayedToCalcs) AS C , iif( C <= 6 , 1 , iif( C <= 8 , 2 , ( iif( C <= 10 , 3 , ( iif( C <= 12 , 4 , ( iif( C <= 14 , 5 , ( iif