![]() |
| |||||||
| Sponsored Links |
![]() | « Previous Thread | Next Thread » |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| |||
| |||
| hi, I have this table called codes Id Codename I want to find the top first codename value so here is my code strs="SELECT TOP (1) Codename * FROM Codes" I am using access codename is text datatype it gives an error The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect.ect. any idea todd |
| Sponsored Links |
|
#2
| ||||
| ||||
| why do you have an asterisk (*) in there? i would take that out and do an order by and desc. Last edited by Rebelle; July 30th, 2008 at 11:19 PM. |
| The Following User Says Thank You to Rebelle For This Useful Post: | ||
BLaaaaaaaaaarche (July 31st, 2008) | ||
|
#3
| ||||
| ||||
| as rebelle said ... remove the asterisk Code: strs="SELECT TOP 1 Codename FROM Codes ORDER BY ASC"
__________________ Quote of the Month: Regret: It hurts to admit when you make mistakes - but when they're big enough, the pain only lasts a second. Questions to Ponder: Could it be that all those trick-or-treaters wearing sheets aren’t going as ghosts but as mattresses? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright © 2008 sbenj69 |
| The Following User Says Thank You to mehere For This Useful Post: | ||
BLaaaaaaaaaarche (July 31st, 2008) | ||
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|