Results 1 to 27 of 27

Thread: Getting RecordCount [Resolved] (almost)

Threaded View

  1. #12

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Getting RecordCount

    How do I refer to the Count() field in my RS ? I forgot that I had already done it with the complex query. Now I need it for the simple query. If I can add the count like szlammy said, I'd like to do that.

    EDIT: I have this

    VB Code:
    1. rs.Open "Delete TempTable .* from TempTable ", cn, adOpenKeyset, adLockOptimistic, adCmdText
    2.  
    3.   rs.Open "INSERT INTO TempTable (RecCount) " & _
    4.      "SELECT  Count(*)" & _
    5.      "From FarmingTemp", cn, adOpenKeyset, adLockOptimistic, adCmdText
    6.   RecCount = rs.Fields(1)

    So how do I get it back out. I've also tried RecCount = rs.fields("RecCount") but that returns an error.
    Last edited by dglienna; Feb 21st, 2005 at 04:37 PM.

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