Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delete or insert a record from database

Status
Not open for further replies.

nastoskiigor

Technical User
Oct 21, 2003
5
SI
Hi!
Error ocure when I wont to insert or delete a record from a database.Message is that Table1 is not in insert or edit mode. My code is:

//for deleting a record after clicking a Button1
Table1->Delete();
Table1->Post();

//for inserting a record after clicking a Button2
Table1->Insert();
Table1->Post();

I dont't know where the problem is? Did I miss something.
Please Help..



 
Is there somethine between the delete/post or insert/post? For example
Code:
// Put table into insert mode
Table1->Insert();
// add another record to table
.
.
.
//Post to table
Table1->Post();
The code to add another record is not shown but would go where the dots (...) would be.

James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
this is the command to delete record:
table->Delete();
You don't need the post after deleting. Make sure the table is open when insering a record
table->Open();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top