Hi Greg,
I went ahead and created a view and bound it to my form:
CREATE VIEW [Top500Products] AS SELECT TOP(500) product_id,SHORT_TEXT,selected FROM Products
but then I thought, hey, that's not gonna give me what I want.
My user types in a SHORT_TEXT, and the query issued will look like this:
SELECT [product_id],[SHORT_TEXT],[selected]
FROM [Test].[dbo].[Top500Products]
WHERE "SHORT_TEXT" LIKE 'userinput%';
This will give me all rows which contain a shorttext that starts with "userinput" and which are in the first 500 rows of the products table, in contrast to a maximum of 500 rows which contain a shorttext that starts with "userinput" and which are in the Products table.
Could you give me more details how my view needs to look like in order to achieve the behaviour of
SELECT TOP(500) FROM Products WHERE "SHORT_TEXT" LIKE 'userinput%'
Thanks and cheers
moe