Results 1 to 3 of 3

Thread: Brain dissolve - record count [Resolved]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Brain dissolve - record count [Resolved]

    How do I find out the recordcount of a table? I don't know if my brain's dissolving or a problem with Access (help files are disappearing, so maybe...)
    I had
    VB Code:
    1. dim db as database
    2. dim rs as recordset
    3. set db = currentdb
    4. 'error on next line - type mismatch
    5. set rs = db.openrecordset("select * from tablename")
    6. if rs.recordcount > 0 then
    7. ....
    8. else
    9. ....
    10. end if
    I swear this works in at least Access 97, but not in 2000. I know this is simple but I'm blanking out on it. Thanks.
    Last edited by salvelinus; Feb 26th, 2004 at 10:01 AM.

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