Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how can i use a jComboBox using rowset

    Hello, i'm trying to use a jComboBox to search data on my database.

    i'm using this code:
    rs.setCommand("SELECT * FROM aanmeldingsformulier WHERE" + jComboBox1.getSelectedItem() + " = ?");

    but when a i run it gives me this error: java.sql.SQLException: no value specified for parameter 1.

    can someone help me?
    thnx

  • #2
    Regular Coder
    Join Date
    Sep 2007
    Location
    AZ, USA
    Posts
    685
    Thanks
    6
    Thanked 46 Times in 46 Posts
    There's a seperate forum for java questions. Javascript is a completely different language. http://www.codingforums.com/java-jsp/


  •  

    Posting Permissions

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