Results 1 to 2 of 2
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    COUNT records by conditions (2000)

    Ho to count record in PROVA2 based the extraction in the query:

    SSQL = "SELECT PROVA2, PROVA1,PROVA3,PROVA9,PROVA11,PROVA12,PROVA13,PROVA 14 FROM DATI WHERE PROVA12 = '" & Me.COMBO_MERCATO & "' AND PROVA3 = '" & Me.COMBO_SETTORE & "' ORDER BY PROVA1 ASC"
    Set RSSQLD = CNSQL.Execute(SSQL)

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: COUNT records by conditions (2000)

    You could use

    Dim RSSQLD As New ADODB.Recordset
    SSQL = ...
    RSSQLD.Open SSQL, CNSQL, adOpenKeyset
    Debug.Print RSSQLD.RecordCount

Posting Permissions

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