I've played with this for several hours trying to make it work with no
success. How do I replace "TOP 4" in the following SQL statement with
the input from a textbox on a form?
If possible I want to do this in the query itself - not an SQL
statement in code.
SELECT TOP 4 [SurName], [FirstName], [Company]
FROM RandCont
ORDER BY Rnd([Num]);
I need "TOP 4" to be replaced with something like
"Forms!MyForm!MyTextBox" so that I can specify how many records I want
in the textbox.
Any help would be appreciated.