I have a form with a combo box (cmbUser) and two text boxes (txtUser & txtBranch). The combo box has 2 columns. When an item is highlighted in the combo box and the user clicks a select button I need to set txtUser to the data in column 1 and set txtBranch to the data in column 2. The data from the columns also needs to be stored in 2 public strings (pblUser & pblBranch).
I can do this ok with just one column but can't figure out how to get the data from the other column. The code I have for the first column is;
pblUser = Me!cmbUser
txtUser.Value = pblUser
txtUser.Requery
Could anyone help?
I can do this ok with just one column but can't figure out how to get the data from the other column. The code I have for the first column is;
pblUser = Me!cmbUser
txtUser.Value = pblUser
txtUser.Requery
Could anyone help?