Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes JDBC and Relational Databases and the fly likes data adapter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "data adapter" Watch "data adapter" New topic

data adapter

Bacchi Gerem
Ranch Hand

Joined: Jan 23, 2004
Posts: 120
I need help .In the following code "else " part code is not working.
My idea is

If there is no record exists dataadapter is null.
else dataadapter has one reord.
How can i do that.please help me


My code:

[edited to add code tags]

[I accidently overwrote your subject. I tried to put it back. Sorry! -Jeanne]
[ June 17, 2005: Message edited by: Jeanne Boyarsky ]
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1135

This is just a suggestion. Try adding:


as in:

Good Luck,
I agree. Here's the link:
subject: data adapter