aspose file tools
The moose likes Beginning Java and the fly likes Delete Records form Database Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 16483
    
    2

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
Bartender

Joined: Aug 16, 2005
Posts: 12921
    
    3

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
Multiple preparedStatements 1 Connection
Performance Issues with database insert !!
error in inserting string into database
Delete Records form Database
How to Update Database