+ Reply to Thread
Results 1 to 2 of 2

database query problem

  1. #1
    Registered User
    Join Date
    01-12-2005
    Posts
    2

    database query problem

    I have a database query set up on an excel sheet. The query returns 3 columns of data. To the right of the 3 colums I have formulas that manipulate the data that is returned from the query. I have a button set up to refresh the query.

    Here is my problem:

    When I refresh the query and it returns less rows than a previous refresh, it will insert cells that say "#REF!" before the last record. The formulas to the right of the error cells also say "#REF!". I cannot for the life of me figure out why this is happenning.

  2. #2
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Blackpool, UK
    Posts
    137
    Hum, interesting.

    This might be dirty data in your objects.

    Make sure that the code to populate the worksheet closes both the recordset and the database objects. E.g.

    myRecordSet.Close
    myDBS.Close

    When walking the recordset, make sure you initialise the pointer with myrecordset.MoveFirst

    HTH

    Art

+ 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