Access Annoyance: ComboBox Ordeal

squeakums

Well-known Member
Joined
May 15, 2007
Messages
602
Okay, I create a combo box in my form, to work with a query below. It is supposed to search for two columns in the query. It works at first. Then, I change the combo box to sort ascending and then it goes bonkers.. When I click on a name/area (my two fields) it will find the name but a difference area not associated with the selection?? What the heck? Access you are so random and annoying.

I recreate the combo box, use it for awhile, It works, I change nothing.. and then all of a sudden, it doesn't as well? Help please. I have refreshed all and I have compact and repaired the database.. so far.. its an ongoing issue. It hates me.
 

xenou

MrExcel MVP, Moderator
Joined
Mar 2, 2007
Messages
16,510
Best in this case would be to find a nearby Access expert to help you. The problem itself can't be resolved without more information - what is the combobox source? How is it linked? What happens on when you click the combobox.
 

squeakums

Well-known Member
Joined
May 15, 2007
Messages
602
Unfortunately, there are no Access DB sources in my area, otherwise, I would definitely reach out. This is the only source besides Google that I have. The combo box is linked to a table I loaded, in the table, I even CTRL and marked any keys that can link. Should I only make 1 item a primary key? If I click in the combo box, my name and my area show, but when selected the query below either goes to some other person or area, or same person different area than selected. Unfortunately the data is secure so I cannot share it on here. I have played around with this thing so much, I setup the combo box by using the tool and it appears to work at first but then it doesn't. It makes no sense to me?
 

xenou

MrExcel MVP, Moderator
Joined
Mar 2, 2007
Messages
16,510
All tables should have primary keys. So if you are using data without a primary key ... well, basically there is no guarantee of correct queries anymore.
 

stumac

Active Member
Joined
Jul 16, 2010
Messages
470
Can you share a copy with no data or mock/test data?

Your description of what you are trying to achieve is unclear.
 

Forum statistics

Threads
1,077,917
Messages
5,337,163
Members
399,129
Latest member
ericosman

Some videos you may like

This Week's Hot Topics

Top