If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Recordset Question...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-28-06, 20:51
daimous daimous is offline
Registered User
 
Join Date: Sep 2005
Posts: 72
Recordset Question...

hi! can anybody pls help me...Supposed i have a recordset that im certainly know that there would be only one value..example(select max(id) from employees)..my question is how can i directly get the value from that recordset? with using the recordset.[blah..blah..blah]? thanks in advanace!!!
Reply With Quote
  #2 (permalink)  
Old 05-29-06, 09:30
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
SQL (the language) doesn't have recordsets

moving this thread to, um, let me guess, asp forum
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 05-31-06, 17:43
wayneph wayneph is offline
Registered User
 
Join Date: Aug 2005
Location: D/FW, Texas, USA
Posts: 78
This should get you close.
Code:
if not rs.eof then
  MaxID = rs.Fields(0)
end if
__________________
--wayne
SELECT * FROM Users WHERE Clue>0
0 rows returned
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On