DeanConsulting
Programmer
I have a client that has the following tables:
tblMembers
tblCalls
tblAttendees
He has several members (fire fighters) in the member table. I would say around 100-150. He also has several calls (fire calls) in the calls table. I would also say around 500-1000. The attendees table contains a list of call id's and a list of member id's and a "y" or "n" to determine if that firefighter actually went on that call or not. (It is how they determine pay).
What needs to be done is that my client would like to select a member or ALL from a combo box and then select a starting and stopping date from calendar controls.
After he has selected this he would like a query to generate the number of calls each member went on times the members pay rate to arrive at a total amount of pay.
He displays the following information in a grid control: member name, pay rate, calls attended, total pay, percentage of calls attended, and total calls.
All of this is working but...
Things are really, really, really slow. He is using an Access 2.0 database and dao. I cannot get him to switch to ado. So, that is out of the question.
My question is this, how can I speed the query up? Right now, searching all those records, it takes about 25+ seconds. As the tables grow, well so does the search time.
The tables are indexed.
How can I speed this up without doing allot of modifications to his database tables??
Thanks in advance,
Noble
---------------------------------------
Noble D. Bell
tblMembers
tblCalls
tblAttendees
He has several members (fire fighters) in the member table. I would say around 100-150. He also has several calls (fire calls) in the calls table. I would also say around 500-1000. The attendees table contains a list of call id's and a list of member id's and a "y" or "n" to determine if that firefighter actually went on that call or not. (It is how they determine pay).
What needs to be done is that my client would like to select a member or ALL from a combo box and then select a starting and stopping date from calendar controls.
After he has selected this he would like a query to generate the number of calls each member went on times the members pay rate to arrive at a total amount of pay.
He displays the following information in a grid control: member name, pay rate, calls attended, total pay, percentage of calls attended, and total calls.
All of this is working but...
Things are really, really, really slow. He is using an Access 2.0 database and dao. I cannot get him to switch to ado. So, that is out of the question.
My question is this, how can I speed the query up? Right now, searching all those records, it takes about 25+ seconds. As the tables grow, well so does the search time.
The tables are indexed.
How can I speed this up without doing allot of modifications to his database tables??
Thanks in advance,
Noble
---------------------------------------
Noble D. Bell