Hi,

I have the following code;

Code:
txtprojnameupdt.Text = txtProjname.Text
 cmbactiveproj.SelectedIndex = cmbactiveproj.FindStringExact(Replace(txtprojnameupdt.Text, "'", "''"))
This code doesn't reflect the cmbactiveproj.SelectedIndex to display the txtprojnameupdt.Text.

Please anyhelp..

Before I had

Code:
 cmbactiveproj.SelectedIndex = cmbactiveproj.FindStringExact.txtprojnameupdt.Text
and it worked fine, but know txtprojnameupdt has a possibility of having apostrophe and hence I had the replace any help pls!