Results 1 to 3 of 3

Thread: dbRecordCount

  1. #1
    Join Date
    Jan 2003
    Posts
    24

    dbRecordCount

    I am trying to do a record count using the following syntax.

    MyDb.ASPdb
    response.write("RecordCount=" & MyDb.dbRecordCount)

    The subsequent grid show me 2 records, but the dbrecordcount = 0 on the page.
    Any ideas?

    Thanks,
    Gianni

  2. #2
    Join Date
    Oct 2002
    Posts
    933
    Seems like you are using classic ASP-db. Show some simple NWIND code to illustrate the problem.


    FK

  3. #3
    Join Date
    Jan 2003
    Posts
    24
    Yes, using Classic ASPdb Pro
    This is my actual code.

    Dim Mydb
    Set Mydb=Server.CreateObject("ASP.db")
    MyDb.dbColor = "White,Blue,LightSkyBlue,Black,LightGrey,,fals e"
    Mydb.dbDSN = Session("ConnectionString")
    MyDb.dbDBType = "SQL" ' It is an SQL database

    SQL = "Select * from vw_rep_IncomingAccountableLog "
    MyDb.dbSQL = SQL
    MyDb.dbGridInc=20
    MyDb.dbMode = "grid"
    MyDb.dbGridHideFlds = "0,1,2,3,6,12,13,14,15"

    MyDb.dbOptions = "HeaderFontTag=Size=1,CellFontTag=Face=Arial Size=1"
    Mydb.dbNavigationItem = "Next, Prev, Download"
    Mydb.dbNavigationIcon = "std"
    MyDb.dbSuppressMsg = true
    MyDb.dbImageDir="../../images/"
    MyDb.ASPdb
    response.write("RecordCount=" & MyDb.dbRecordCount)

Posting Permissions

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