Solved

VB ADO Index by Date

Posted on 2011-02-27
2
674 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

738 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