Solved

VB ADO Index by Date

Posted on 2011-02-27
2
651 Views
Last Modified: 2012-05-11
Is it possible to index a database with a date field?  I have a database that has 2 million records and would like to search records by the transaction date.  Using the ADO seek will work but takes a long time.  Not sure how to do about this, if it possible at all.  I am using VB 6.0 with ADO.  The database is an Advantage Database.  I can also use SQL too, I guess.  Any thoughts or comments would be appreciated.
0
Comment
Question by:grandrew
2 Comments
 
LVL 45

Accepted Solution

by:
aikimark earned 500 total points
ID: 34994509
Open the database with the Advantage database console, select the table, click Add Index and select the date field.

Note, that date fields may include a time-of-day component and might not give you the results you want if you expect day granularity.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now