This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Delete Records form Database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Delete Records form Database" Watch "Delete Records form Database" New topic
Author

Delete Records form Database

Sander Silva
Greenhorn

Joined: May 15, 2011
Posts: 28
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

Joined: Aug 18, 2009
Posts: 174

So what message comes with exception?
Sander Silva
Greenhorn

Joined: May 15, 2011
Posts: 28
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Aug 16, 2005
Posts: 14074
    
  16

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:



Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Delete Records form Database
 
Similar Threads
How to Update Database
Performance Issues with database insert !!
Multiple preparedStatements 1 Connection
Delete Records form Database
error in inserting string into database