Howdy,
Wonder if somebody would be so kind as to have a quick look at this for me :
DoCmd.SetWarnings False
check = MsgBox("This will permanently delete the currently selected member of staff and all of their personal training records. Are you sure you want to do this ?", vbYesNo + vbDefaultButton2 + vbExclamation, "Warning!!!")
If check = vbYes Then
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
MsgBox "Test"
Me!ID_Name = Null
Me!ID_Name.Requery
End If
If check = vbNo Then
MsgBox "Delete Operation Cancelled", vbOKOnly + vbInformation, "Information"
End If
It's the bit in bold that i'm having trouble with in that it doesn't appear to run. I put the message box in just to test it but it doesn't show. Equally, the combo box doesn't clear or requery.
What have I done wrong ?
Thanks for any help
TSSTechie
May The Force Be With You
Wonder if somebody would be so kind as to have a quick look at this for me :
DoCmd.SetWarnings False
check = MsgBox("This will permanently delete the currently selected member of staff and all of their personal training records. Are you sure you want to do this ?", vbYesNo + vbDefaultButton2 + vbExclamation, "Warning!!!")
If check = vbYes Then
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
MsgBox "Test"
Me!ID_Name = Null
Me!ID_Name.Requery
End If
If check = vbNo Then
MsgBox "Delete Operation Cancelled", vbOKOnly + vbInformation, "Information"
End If
It's the bit in bold that i'm having trouble with in that it doesn't appear to run. I put the message box in just to test it but it doesn't show. Equally, the combo box doesn't clear or requery.
What have I done wrong ?
Thanks for any help
TSSTechie
May The Force Be With You