*
The moose likes Swing / AWT / SWT and the fly likes Add data into database from jcombobox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Add data into database from jcombobox" Watch "Add data into database from jcombobox" New topic
Author

Add data into database from jcombobox

Ah Ling
Greenhorn

Joined: Dec 28, 2009
Posts: 12
Hi all.
I have a problem now.
That is I want to add the data to the database from the comboboxes.
And I have errors adding it.



How should i go about fixing it?

Thanks in advanced!
Ah Ling
Greenhorn

Joined: Dec 28, 2009
Posts: 12
Hey.
Now, I know where is the problem already.
As I am getting the data from the combobox (It is from other class), thus I can only take in 'null' into the database!
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
this type of error is generally found on line 42 of the code.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

I think Michael means TellTheDetails. The most important question is, what is the exact query you are trying to execute?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
jQuery in Action, 2nd edition
 
subject: Add data into database from jcombobox
 
Similar Threads
DSN less MS access Connection using JSP - help needed
General Error in SQL Server 2000
Connecting to MS Access 2000
Data source name not found and no default driver specified
Use MS SQL Server 2000 JDBC driver with WSAD 4.0