Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query to select specific row from table

Status
Not open for further replies.

IANGRAND

Technical User
Jul 29, 2003
92
GB
I am applying the following query, to select the row number taken from textbox 156, for the table HOURLY_AVERAGE:

SELECT TOP 1 *
FROM [Select top Me!Text156.Text * from HOURLY_AVERAGE order by AvgOfNO2 desc]. AS T1
ORDER BY AvgOfNO2;

However, on running the code the following error is produced:

"The select statement includes a reserved word or statement that is mispelled or missing, or the punctuation is incorrect."

Any ideas how to resolve this problem?

Cheers

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top