Home » Developer & Programmer » Forms » delete button
delete button [message #384279] Tue, 03 February 2009 02:17 Go to next message
imuharram
Messages: 48
Registered: January 2009
Member
I have a datablock from a table in my database, i have 3 records to be displayed.

i added a button to that datablock as a non-database item. this button is supposed to delete record. for example if i press the second button i want the second record to be deleted and so on, but what i get is deleting the first record.

how can i solve this?
Re: delete button [message #384282 is a reply to message #384279] Tue, 03 February 2009 02:30 Go to previous messageGo to next message
dr.s.raghunathan
Messages: 540
Registered: February 2008
Senior Member
this problem should definately belongs to ddl you have given behind button process. kindly check it otherwise post the instructions you have given against delete button process
Re: delete button [message #384287 is a reply to message #384282] Tue, 03 February 2009 02:49 Go to previous messageGo to next message
imuharram
Messages: 48
Registered: January 2009
Member
delete_record;
execute_query;
Re: delete button [message #384301 is a reply to message #384287] Tue, 03 February 2009 03:22 Go to previous messageGo to next message
Littlefoot
Messages: 20900
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
It appears that - when clicking the button - you didn't set focus onto that record (but it remained in the first record so it has been deleted).

Did you set the "Mouse Navigate" button property to "Yes"?
Re: delete button [message #384308 is a reply to message #384279] Tue, 03 February 2009 03:41 Go to previous message
imuharram
Messages: 48
Registered: January 2009
Member
no it was set to 'NO'
thank you Smile
it worked
Previous Topic: how to read barcode data in form
Next Topic: AVOIDING OF MESSAGES
Goto Forum:
  


Current Time: Thu Dec 08 03:44:33 CST 2016

Total time taken to generate the page: 0.06494 seconds