ThePhantom
New member
- Local time
- Today, 11:48
- Joined
- Jun 15, 2004
- Messages
- 6
Complex Query Execution
Hi,
I have a table having more than 500,000 records. I have created indexes on all the major fields..... However, MS Access only allows creating indexes on the columns themselves, rather their parts too.....
What I mean is, I can create an index on PayDate, however, not on DATEPART('M', PayDate). My reason for mentioning this is directly related to my problem..... I have a report, and have several TextBoxes with 'DLookUps', which run a complex query based on this table, with the result that it really takes an enormous amount of time for the report to be previewed.....
Can anyone please suggest a way to execute my queries faster?? I have several complex queries (queries which use 'DATEPART', 'IIF', etc. extensively), and would like to minimize their execution time.....
Thanks,
Aashish
Hi,
I have a table having more than 500,000 records. I have created indexes on all the major fields..... However, MS Access only allows creating indexes on the columns themselves, rather their parts too.....
What I mean is, I can create an index on PayDate, however, not on DATEPART('M', PayDate). My reason for mentioning this is directly related to my problem..... I have a report, and have several TextBoxes with 'DLookUps', which run a complex query based on this table, with the result that it really takes an enormous amount of time for the report to be previewed.....
Can anyone please suggest a way to execute my queries faster?? I have several complex queries (queries which use 'DATEPART', 'IIF', etc. extensively), and would like to minimize their execution time.....
Thanks,
Aashish