SELECT TOP

R

Ray Hogan

Hi,
Please advise how I can get the following to select the value in
cboCategoryPrize in the following statement;
SELECT TOP Me! [cboCateroryPrize] qryWinner.CreScrPrize,
qryWinner.TotalPts, qryWinner.CreScrHCap, qryWinner.Back9
FROM qryWinner
WHERE (((qryWinner.CreScrHCap)<[Forms]![frmCriteria]![txtLessThan]))
ORDER BY qryWinner.TotalPts DESC , qryWinner.Back9 DESC;
This give me a Reserved word or argument name misspelled or missing
response.
Thanking you in anticipation.
RayH
 
D

Douglas J. Steele

I don't believe what you're trying to do is possible: the only place you can
refer to external values is in the WHERE clause.

You'll have to dynamically rewrite the SQL each time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top