Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form to lookup/search for data

Status
Not open for further replies.

sirace

MIS
Dec 8, 2003
34
US
Ok, here's my dilemma. I have a database with 350000 transactions. Each transaction is linked to an account number. There about 64000 unique account numbers (field: account_no). How can I make a lookup box that will only include unique account numbers. Currently, I have the look up box get the values from a query that uses "group by" to generate a list of unique account numbers, my problem is that every time I open the form it runs the query and then it runs it again when I click on the lookup box. Any suggestions on ways to speed this up? On my computer it takes about 45-60 secs to run the query.
 
Turn the query that does the lookup into a Make Table query. Then use the table of unique values to populate the list box. This will eliminate the processing time for the query.

I hope this helps,

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top