Computing.Net > Forums > Programming > VB Search Method

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

VB Search Method

Reply to Message Icon

Original Message
Name: jane99
Date: October 9, 2004 at 09:07:47 Pacific
Subject: VB Search Method
OS: XP
CPU/Ram: 500
Comment:

Hi

I’m trying to find out what the most efficient method of finding data in a table.

My database reads two text files containing 15,000 records each. The first file is read and stored in the table using the Addnew command and is pretty quick, the second file is an update file and needs to match the existing records in the table.


My existing code is “Select * from tablename where code = “ & secondfilecode

As this has to search through 15,000 records it is quite slow, is there a better way to do it?

Thanks
Jane


Report Offensive Message For Removal


Response Number 1
Name: agehoops
Date: October 9, 2004 at 10:03:36 Pacific
Reply: (edit)

I had a look on the net to see what i could find, and i found a basic search for a form using VB code, and i managed to get it working. There were some bits which i found confusing, and didn't understand 100%, but i got it working. If you take a look on this site, in the form section, you will find one for adding a simple search to your form. There is also loads of other useful code on the site to use. Its all free. The form search link is :
http://www.microsoft-accesssolutions.co.uk/text_search.htm

Hope that is any help. let me know


Report Offensive Follow Up For Removal

Response Number 2
Name: jane99
Date: October 9, 2004 at 11:21:34 Pacific
Reply: (edit)

Hi

Thanks for the effort, but not really what I'm looking for.

I'm using a ADO recordset with VB.

Jane


Report Offensive Follow Up For Removal

Response Number 3
Name: wizard-fred
Date: October 10, 2004 at 08:11:37 Pacific
Reply: (edit)

If you are using ADO then maybe the problem is there. You may consider the organization of the 2nd database.


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software