X xolo Registered User. Local time Tomorrow, 00:23 Joined May 6, 2009 Messages 34 Dec 22, 2009 #1 How do I get rid of this warning: "The record cannot be deleted because table ... includes related records." and use my own msgBox fuction instead?
How do I get rid of this warning: "The record cannot be deleted because table ... includes related records." and use my own msgBox fuction instead?
ajetrumpet Banned Local time Today, 12:23 Joined Jun 22, 2007 Messages 5,638 Dec 22, 2009 #2 i don't think you can. but if you want to get rid of it and have the deletion go through, you might have to turn on your cascading deletes.
i don't think you can. but if you want to get rid of it and have the deletion go through, you might have to turn on your cascading deletes.
X xolo Registered User. Local time Tomorrow, 00:23 Joined May 6, 2009 Messages 34 Dec 22, 2009 #3 Never mind! I've just solved it by using this: Private Sub Form_Error(DataErr As Integer, Response As Integer) If DataErr = 3200 Then MsgBox "Some message..." Response = acDataErrContinue End If End Sub
Never mind! I've just solved it by using this: Private Sub Form_Error(DataErr As Integer, Response As Integer) If DataErr = 3200 Then MsgBox "Some message..." Response = acDataErrContinue End If End Sub
gemma-the-husky Super Moderator Staff member Local time Today, 18:23 Joined Sep 12, 2006 Messages 16,002 Dec 22, 2009 #4 note that the err object will have a value of 0 in this instance the standard text for the given error number can be obtained by accesserror(dataerr)
note that the err object will have a value of 0 in this instance the standard text for the given error number can be obtained by accesserror(dataerr)
X xolo Registered User. Local time Tomorrow, 00:23 Joined May 6, 2009 Messages 34 Dec 22, 2009 #5 gemma-the-husky said: note that the err object will have a value of 0 in this instance the standard text for the given error number can be obtained by accesserror(dataerr) Click to expand... Thanks gemma!
gemma-the-husky said: note that the err object will have a value of 0 in this instance the standard text for the given error number can be obtained by accesserror(dataerr) Click to expand... Thanks gemma!