Programatically selecting items in combobox

emorris1000

Registered User.
Local time
Yesterday, 17:00
Joined
Feb 22, 2011
Messages
125
I should know how to do this :banghead:

I need to have a combobox (cboxNB) update its selected value to match another field (NotebookNum).

I've tried this:

Me.cboxNB = Me.NotebookNum

didn't work


I know this is super easy, I just haven't done it in years. Anyone want some easy thanks?

ed: Tried
Me.cboxNB.value = Me.NotebookNum.value
Still didn't work. For some reason it keeps setting the combobox to null.

I think this may have to do with the bound column being different from the column I am trying to link it to...now that I think about it.

ed2: ok yeah I'm an idiot. The cbox was linked to a different field. blerg. It works now.
 
Last edited:
...I think this may have to do with the bound column being different from the column I am trying to link it to...

...The cbox was linked to a different field...

That would have been my guess! It's always nice when you can figure it out for yourself!

And thanks for posting the solution for future seekers of knowledge!

Linq ;0)>
 

Users who are viewing this thread

Back
Top Bottom