Results 1 to 13 of 13

Thread: Combobox SelectedIndex

Threaded View

  1. #10

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2009
    Posts
    1,058

    Re: Combobox SelectedIndex

    Ok Changed it to ;

    Code:
    txtprojnameupdt.Text = Replace(txtProjname.Text, "'", "'")
    
                Me.QryactiveprojectsTableAdapter.Fill(Me.Projstatus.qryactiveprojects)
    
                cmbactiveproj.SelectedIndex = cmbactiveproj.FindStringExact(txtprojnameupdt.Text)

    Then I had a txtprojname.text = 4567 - test app changed to 4567 - test app'.

    The value of cmbactiveproj, txtprojname and txtprojnameupdt is identical i.e., 4567 - test app'.

    However, an error message is prompted as shown below -

    Unclosed quotation mark after the character string '4567 - test app''. Incorrect syntax near '4567 - test app''.

    When you click ok, the whole form is populated fine. Why do I receive this error? Thanks
    Last edited by dr223; Aug 13th, 2010 at 10:22 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width