|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
select min value
Hi,
This is my SQL code, "SELECT MIN(TotalLeft) FROM Burn" And this is where I ask to see the result. Line 275 = <%response.write recordset("TotalLeft")%> I am getting this error: ADODB.Recordseterror '800a0cc1' Item cannot be found in the collection corresponding to the requested name or ordinal. /Content/DLRC/DLRC_Interface/CD_DVD_log.asp, line 275 Any insight? My SQL code is correct and works in my Access Database.... Thanks! |
|
#2
|
||||
|
||||
|
Change your sql statement to this
Code:
SELECT MIN(TotalLeft) As TotalLeft FROM Burn" |
|
#3
|
||||
|
||||
|
Thanks, that was a much quicker fix than me sitting here trying to figure it out....much appreciated.
Quote:
|
|
#4
|
||||
|
||||
|
Read my signature regarding "Helpful Posts" and adding reputation points.
Glad, it worked for you. |
|
#5
|
||||
|
||||
|
Gottcha! One more thing....and I will do your request.
How do I do more than one min value? I have this: "SELECT MIN(TotalLeft) as TotalLeft AND MIN(DVDTotal) as DVDTotal FROM Burn" and I am getting an error..........thanks, you always are very helpful. |
|
#6
|
||||
|
||||
|
try this
Code:
SELECT MIN(TotalLeft) As TotalLeft, MIN(DVDTotal) As DVDTotal FROM Burn |
|
#7
|
||||
|
||||
|
It's weird, it is not selecting the lowest DVDTotal.
|
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > select min value |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|