This is my first post and I'm not an expert in Access nor VBA but I've solved a lot of problems in programming by using this forum. It's been a great help.
I have an Access .mdb database of about 1300 volunteers. On my main volunteer form I have two unbound combo boxes that I use to select individual volunteers; one by name, the other by their number. They both work but when I select either one the other doesn't sync.
In an effort to get them to sync I entered the code in the "change " event but it's giving me an error message with the number 7777.
Attached are pictures of what I have coded along with the the two variables set as Public in a standard module.
I've read that trying to set the listindex of a combo/listbox when that listbox does not have the focus can cause an error. I'm not sure if that's the problem I'm having or not but if someone can help me solve this it would be much appreciated.
I have an Access .mdb database of about 1300 volunteers. On my main volunteer form I have two unbound combo boxes that I use to select individual volunteers; one by name, the other by their number. They both work but when I select either one the other doesn't sync.
In an effort to get them to sync I entered the code in the "change " event but it's giving me an error message with the number 7777.
Attached are pictures of what I have coded along with the the two variables set as Public in a standard module.
I've read that trying to set the listindex of a combo/listbox when that listbox does not have the focus can cause an error. I'm not sure if that's the problem I'm having or not but if someone can help me solve this it would be much appreciated.