|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
before/afer del confirm event not working
can't quite get why these don't generate any messages when i'm deleting a record:
Private Sub Form_AfterDelConfirm(Status As Integer) If Me.[Continuing].Value = "Yes" Then Msg1 = MsgBox("Be advised you have just deleted an AE which continues past this cycle.", vbCritical, "Critical") End If End Sub Private Sub Form_BeforeDelConfirm(Cancel As Integer, Response As Integer) If Me.[Continuing].Value = "Yes" Then Msg1 = MsgBox("Be advised you are preparing to delete an AE which continues past this cycle.", vbCritical, "Critical") End If End Sub all i do get is the standard windows confirmatory window?? Last edited by USCitizen : February 24th, 2005 at 12:03 PM. Reason: before/afer del confirm event not working |
|
#2
|
|||
|
|||
|
If you want the msgbox to display then instead of...
Msg1 = MsgBox("Be advised you are preparing to delete an AE which continues past this cycle.", vbCritical, "Critical") ... use.... MsgBox "Be advised you are preparing to delete an AE which continues past this cycle.", vbCritical, "Critical" hope that helps |
![]() |
| Viewing: Dev Articles Community Forums > Databases > Microsoft Access Development > before/afer del confirm event now working |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|