|
Question : Progress meter on an append query
|
|
Is there a way to run a progress meter while an append query is running. I would like to give the users an indication of how far the query has progressed. It is a single INSERT INTO query that appends @1300 records + or -. Before, I had actually looped through the recordset and sent an individual INSERT INTO query for each record, updating the progress meter after each record. I was hoping to get a performance gain by using a single append query instead of many individual ones. I think I read somewhere that behind the scenes, Access actually breaks the query down into individual statements. Anyway, is there way to have the progress meter reflect how far a single action query is into an update such as this?
Thanks,
Andy
|
|
Answer : Progress meter on an append query
|
|
I don't think there is; as far as your code is concerned, the query is a single operation, unless you had some way to break down the query into a bunch of smaller appends (for example, appending names starting with A, then incrementing the progress bar by 1/26th, appending names starting with B... etc.), but that would be messy, pointless, slow and with the potential risk that some data might fall between your criteria (i.e. someone erroneously enters the name '0liver' using a zero, not an O) and not be appended.
Alternatively, there *might* be some third-party SQL component that you could use, but again, these are most likely to treat a query as a single operation (from your point of view, anyway) and you'd be no better off.
|
|
|
|