+ Reply to Thread
Results 1 to 2 of 2

Code doesn't display any result

  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Code doesn't display any result

    Hi guys

    I want to display query result from access table in Excel sheet. In this project the backend is Access and the frontend is excel. But the sheet 3 doesn't display any value.
    Please Login or Register  to view this content.
    Can anyone please solve my problem.

    Regards
    Aman

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2006
    Location
    -
    MS-Off Ver
    2010
    Posts
    388

    Re: Code doesn't display any result

    A few things wrong:

    1. Take the spaces out before ComboBox1.Value in the rs.Find statement:

    Please Login or Register  to view this content.
    2. The y = 1 statement should be outside the Do While loop.

    3. Fields start at zero, so adjust your For loop.

    4. Instead of rs.Movenext use rs.Find with the same criteria.

    Please Login or Register  to view this content.
    Also any reason why you are not using SQL to only retrieve the records you want and not the whole table?

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1