• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Delete Records form Database

 
Sander Silva
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!

I need to delete all records form my (MS Access) database
when I give a particular name (String) of a record.
When I click the button all records related to particular name should be deleted.
There's something wrong in my code. please help





please help,
 
Zandis Murāns
Ranch Hand
Posts: 174
Java Java ME Opera
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what message comes with exception?
 
Sander Silva
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for quick reply,

here's the error

cannot find symbol
symbol: method getText(java.lang.String)
location: class java.lang.String
 
Paul Clapham
Sheriff
Posts: 21117
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, it's true. The String class doesn't have a static getText() method.

However I have no idea what you meant to use that nonexistent getText() method for, so I can't make any suggestions about what you should replace it by. Could you explain what it was supposed to do?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15356
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This line is wrong:

You are trying to call the method getText on the String class. But class String does not have such a method. You probably meant this:


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic