Results 1 to 8 of 8

Thread: searching access database

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2008
    Posts
    18

    searching access database

    Hello,

    I have an access database with 100,000+ records that I need to search through. I only need to work with the records that have a value in the account number field. Right now I have it going down the table and whenever it finds a row with an account number in it, it does the computations. This process only allows a few hundred records to be done every minute. I need to speed this up, but I have no clue how. Any help would really help me out


    Code:
    For i = 1000 To x 'x is number of rows in table
    
        
        
        Adodc1.RecordSource = "SELECT * FROM tSaleTransactions Where cdeTrans='A" & i & "'"
      
        Adodc1.Refresh
      
        If Adodc1.Recordset.Fields("cdeCustCode") <> Empty Then
    'does computations
    Last edited by mooe; Jun 1st, 2008 at 08:10 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