![]() |
| |||||||
| Sponsored Links |
![]() |
| | LinkBack | Thread Tools | Display Modes |
|
#11
| ||||
| ||||
| Not sure why it wouldn't work for you. Are you clicking the tiny button to the right of each row? What happens when you click the buttons? When I click them, I get two delete confirmation dialogues and then the row is deleted.
__________________ jmurrayhead If you agree with me... click the icon! If my post solved your problem, click the button in the lower right-hand corner of the post.If you like it here...throw us a few bones to help support us. Join our Folding team: DeveloperBarn Folding |
| Sponsored Links |
|
#12
| |||
| |||
| ok i got it..the anoying security was on..i hade to disable it.. how can i past this in my current project? i did it but there must be a place to edit the button delete so it can reflect my database?if so what part do i replace? Code: Private Sub Command10_Click()
On Error Resume Next
Dim intAnswer As Integer
intAnswer = MsgBox("Are you sure you want to Delete selected Line?", vbOKCancel, "Delete")
Select Case intAnswer
Case vbOK
intAnswer = MsgBox("Final Warning - Continue and Delete Line?", vbOKCancel, "Warning! Delete")
Select Case intAnswer
Case vbOK
DoCmd.SetWarnings (warningsoff)
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdDeleteRecord
Case vbCancel
DoCmd.CancelEvent
End Select
Exit Sub
MsgBox Err.Description
Resume Next
End Select
End Sub
|
|
#13
| ||||
| ||||
| You don't have to replace anything. This procedure uses built-in methods to perform the delete. Simply paste this as your delete button's click event and it should work |
|
#14
| |||
| |||
| its all good now that stupid security thing..lol!!thx |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Webform Default Button | Devwhiz | .Net Development | 9 | May 15th, 2008 01:15 PM |
| Display Radio Button Value onclick | theChris | JavaScript Programming | 5 | March 22nd, 2008 02:28 PM |