Results 1 to 3 of 3

Thread: recordset help

  1. #1
    ATommasi
    Guest

    Talking recordset help

    ok, i am completly new to asp and database development so please bear with me.
    i know how to connect to the database and use a record set. But how do i use aggragates with a recordset

    Code:
      sql = "select column1 from table1"
      varTest = rs("column1") <---- easy
    
      sql = "select count(*) from table1"
      varTest = rs("?????") <--- what goes here?

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Give it a name using the AS:

    Code:
    sql = "select count(*) as name1 from table1"
      varTest = rs("name1") <--- what goes here?
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3
    ATommasi
    Guest
    i knew it was something simple, thanks alot!

Posting Permissions

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



Click Here to Expand Forum to Full Width