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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help Speeding up search using a combo box

Status
Not open for further replies.

rookiedev

Technical User
Jul 23, 2002
115
US
I have a combo box that looks up an address and then displays the Customer information for the selected value. There are currently 1840 addresses and the process is getting slower all the time. Does anyone have any suggestions?

This is the row source of the combo:
SELECT DISTINCTROW [Customers].[CustomerID], [Customers].[Fac#] FROM [Customers];

And

this is the AfterUpdate Event:

Sub Combo40_AfterUpdate()
' Find the record that matches the control.
Me.RecordsetClone.FindFirst "[CustomerID] = " & Me![Combo40]
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub

Thanks
RookieDev
 
How would I accomplish that exactly?

Sub Combo40_AfterUpdate()
' Find the record that matches the control.
DoCmd.FindRecord"[CustomerID] = " & Me![Combo40]

End Sub
Would this work???????

RookieDev
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top