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

Combo box record search problems

Status
Not open for further replies.

uofte

Technical User
Mar 23, 2002
5
US
Thanks in advance for helping a newbie.

Basic setup - tblMain contains these items:
- Location Code (4 digits)
- Location Name
- Some variables like Miles Driven, # of employees, etc.

I did a form on this table. I inserted a combo box to select a record on the form using Location Code. It works great....until I try to tab out of the combo to one of the variables. When I tab, it moves to the next location name, i.e., the next record.

This problem is driving me bonkers. Can anyone help?

Thanks!
Dustin
 
Dustin
You can open your form in Design View, select View and then Tab Order and change the tab order to whatever you wish.

It seems that perhaps you have your combo box as the last in the tab order, so tabbing from there will send you to a new record.

Tom
 
Hi

If THWatson has identified the problem, another solution is to amend the .cycle property of your form to CurrentRecord

It would help if you showed us the code in the combo box I THWatson has not identified the problem

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
I am afraid the problem isn't as easy as tab order. Thanks anyway for the response. I am posting the row source language for the combo box.

SELECT DISTINCT Main.Location_Code, Main.Location_Name FROM Main;

Thanks in advance - Dustin
 
Hi

Have you set the .cycle property of the form as suggested in my previous post?

Do you have any VBA code in the lostfocus event or the after update eevnt of the combo box?


Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top