View Full Version : how can i use a jComboBox using rowset

06-16-2008, 05:08 PM
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?

06-16-2008, 09:52 PM
There's a seperate forum for java questions. Javascript is a completely different language. http://www.codingforums.com/forumdisplay.php?f=54

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum