Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i use the command seek to my mdb access 2000 in my vb6 code.

Status
Not open for further replies.

clones

Programmer
Oct 1, 2002
11
PH
i am creating a source code in visual basic 6, which happen to be that I am manipulating more than 1g of access databases 2000, i use a command find but it turn out that it is to slow in finding records, i want to use the command seek in finding my records what its the code use so i can use the seek command in my program....
 
How long does it take to find the record?

Are you using DAO or ADO?

If ADO, and this is a Jet MDB, then use a Server Side cursor for things like this:

rs.CursorLocation = adUseServer

Leaving out the Sort order will speed things up alot, and having a index on the criteria fields will also. [/b][/i][/u][sub]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
I like to use an access query and just pass it parameters, if possible. Thanks and Good Luck!

zemp
 
i am using ado connection but still the command seek donot recognize

i already adseek and adindex but it always says the method or data member not found.

what should i do ????
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top