Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2005
    Posts
    74

    Unanswered: 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!!!

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    SQL (the language) doesn't have recordsets

    moving this thread to, um, let me guess, asp forum
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •