Hello,
I am trying to write a query that will select the first say 1000 records from one table into another table. I was successful using the TOP clause when I wanted to hard code the number of records returned. How do I modify the SQL to allow the user to enter the number of records they want instead of having a fixed number? Help!
The code that I currently have is:
SELECT [UNUSED IBM NBRS].ID, [UNUSED IBM NBRS].IBM INTO [IBMs Selected]
FROM [UNUSED IBM NBRS]
WHERE ((([UNUSED IBM NBRS].ID) In (SELECT TOP 1000 ID
FROM [UNUSED IBM NBRS])));