Solved

VB ADO Index by Date

Posted on 2011-02-27
2
676 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 46

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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
Recently I was talking with Tim Sharp, one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. While doing some quick training with some of the Percona team, Tim brought something to my attention...
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…

630 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