FunkyDexter
Jun 8th, 2005, 09:56 AM
I want to populate a combo box with all the accounts from a db. I want the account name to show but I want to be able to recover the account id when a user makes a selection.
In Vb I'd do this by using a datacombo, setting it's datasource to a adodb object and setting it's listID to accountName and it's bound column to accountID. Easy.
The trouble is that the datacombo in outlook doesn't seem to have a datasource property (The datagrid didn't have one in it's properties panel either but I was able to set it from code - sadly not the case with the datacombo). So how do you set the datasource for a datacombo in outlook?
Alternatively, is there a way I could use the standard combobox in outlook? I would want it to display the account name without the account id but I'd want ot be able to recover the account id when a user makes a selection.
In Vb I'd do this by using a datacombo, setting it's datasource to a adodb object and setting it's listID to accountName and it's bound column to accountID. Easy.
The trouble is that the datacombo in outlook doesn't seem to have a datasource property (The datagrid didn't have one in it's properties panel either but I was able to set it from code - sadly not the case with the datacombo). So how do you set the datasource for a datacombo in outlook?
Alternatively, is there a way I could use the standard combobox in outlook? I would want it to display the account name without the account id but I'd want ot be able to recover the account id when a user makes a selection.