SpinningHead
Programmer
I have an order form which utilizes a combo box to obtain user input and return a set of records to the same form. The query is simple, returning from one table all items of a specific type (select all records from tblItems where type = selected type). There are several categories to choose from and each time the query returns results within 2 seconds. Once a specific item is located, the user can push a button to add that item to the current order. Once that button is pushed, however, and the user selects another category, the query can take up to 10 minutes or more to run. I've stripped out all of the code in the button and the query still takes an insane amount of time even though no code was executed. The table is indexed according to the search criteria. The form is not based on a table or query and the query is executed from VB once a selection has been made. I've also tried using a saved query (also executed from VB) with no different results. Any ideas what is happening? Is there a better way to build an order form? I am using Access 2003 on a WinXP box. Thanks for your help.