• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the error? Java login program to check whether a user exists in an Access databse  RSS feed

 
Gihan Madushanka
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone!!!

I have written a java program which allows a user to enter their username & password. Then the system validates whether a user exists or not.
Below is the code


When the program runs Login frame appears but nothing happens when the login button is pressed? What has gone wrong in the program?
Actually I am little bit confused with the sql code. What are these single & double quotations?
 
K. Tsang
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The sql looks fine to me. You say there is nothing when the login button is clicked? Your exception block has nothing in it in case it did throw exception, you wouldn't know about it.

The nothingness may be in the connection itself.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!