Results 1 to 2 of 2

Thread: Listbox problem

  1. #1
    Join Date
    Nov 2002
    Location
    Belgium
    Posts
    243

    Unanswered: Listbox problem

    I wrote a SQL-statement in VB which is called strSQL.
    I have a listbox on a form with rowsource = strSQL.

    debug.print listbox.listCount = 1
    --> should be zero

    When I use the same statement in a recordset it gives me the right result.

    recordset.open strsql
    recordset.recordCount gives me zero
    --> is correct

    Why????



    Thanks

  2. #2
    Join Date
    Sep 2003
    Location
    MI
    Posts
    3,713
    Check your cursorlocation on the recordset ... Make sure it's set to adUseClient ...

Posting Permissions

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