How to set the itemdata in a combox from key value
        Posted  
        
            by glinch
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by glinch
        
        
        
        Published on 2010-04-01T22:28:46Z
        Indexed on 
            2010/04/01
            22:33 UTC
        
        
        Read the original article
        Hit count: 448
        
ms-access
|ms-access-2007
Hi,
How would i set the itemdata from getting just the ID/key of a row, if i didnt know what order it is in on the list
For example I have a combo box showing the following:
cmbPeople:
ID   Name
2    Rod
4    Jane
6    Freddy
eg. I know I want Jane to be the focus of the combo box, and i have the ID but i dont know that its the second item in the list ( Me.cmbPeople.ItemData(1) )
How would I go about doing this??
Thanks in advance for any help
© Stack Overflow or respective owner