File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 19544
    
  16

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Add data into database from jcombobox
 
Similar Threads
General Error in SQL Server 2000
Use MS SQL Server 2000 JDBC driver with WSAD 4.0
Data source name not found and no default driver specified
DSN less MS access Connection using JSP - help needed
Connecting to MS Access 2000