473,386 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Question about error #2074 - "Operation not supported withtransactions"

Using A2003. I'm receiving this error when returning from a
"DoCmd.OpenReport..." statement. I have a tab control with a subform
on every tab. The user selects an item from a combobox at the top of
the main form which refreshes all the subforms. If this DoCmd
statement is not executed, then I don't receive the error. I tried a
"DoCmd.OpenQuery..." instead of a report but get the same error.

I want the user to be able to print-preview a report if they try to
delete an item from any combobox on the subforms where there are
related records. They're given an option to print-preview a report
showing the related records. If they choose to print-preview, then
this error occurs on trying to move to another record. If they choose
not to print-preview, then the error doesn't occur.

It appears to be something with the DoCmd property. I'm finding some
posts on this newsgroup about getting this error after deleting
records and being careful about how subforms are linked. If there are
no related records, then the item is deleted and I'm able to go on to
another record. The subforms refresh just fine if the DoCmd is not
executed.

Any help or advice on how to fix or work-around this problem is
appreciated.
Jun 27 '08 #1
7 4812
On Thu, 19 Jun 2008 07:18:15 -0700 (PDT), EManning
<ma**********@hotmail.comwrote:

The term "transaction" more than likely refers to a database
transaction. As in a stored procedure with:
BEGIN TRANS
--Do Something
COMMIT TRANS

or the transaction support in DAO or ADO.

Is that what you are doing?

-Tom.

>Using A2003. I'm receiving this error when returning from a
"DoCmd.OpenReport..." statement. I have a tab control with a subform
on every tab. The user selects an item from a combobox at the top of
the main form which refreshes all the subforms. If this DoCmd
statement is not executed, then I don't receive the error. I tried a
"DoCmd.OpenQuery..." instead of a report but get the same error.

I want the user to be able to print-preview a report if they try to
delete an item from any combobox on the subforms where there are
related records. They're given an option to print-preview a report
showing the related records. If they choose to print-preview, then
this error occurs on trying to move to another record. If they choose
not to print-preview, then the error doesn't occur.

It appears to be something with the DoCmd property. I'm finding some
posts on this newsgroup about getting this error after deleting
records and being careful about how subforms are linked. If there are
no related records, then the item is deleted and I'm able to go on to
another record. The subforms refresh just fine if the DoCmd is not
executed.

Any help or advice on how to fix or work-around this problem is
appreciated.
Jun 27 '08 #2
On Jun 19, 10:10*pm, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Thu, 19 Jun 2008 07:18:15 -0700 (PDT), EManning

<manning_n...@hotmail.comwrote:

The term "transaction" more than likely refers to a database
transaction. As in a stored procedure with:
BEGIN TRANS
--Do Something
COMMIT TRANS

or the transaction support in DAO or ADO.

Is that what you are doing?

-Tom.
Using A2003. *I'm receiving this error when returning from a
"DoCmd.OpenReport..." statement. *I have a tab control with a subform
on every tab. *The user selects an item from a combobox at the top of
the main form which refreshes all the subforms. *If this DoCmd
statement is not executed, then I don't receive the error. *I tried a
"DoCmd.OpenQuery..." instead of a report but get the same error.
I want the user to be able to print-preview a report if they try to
delete an item from any combobox on the subforms where there are
related records. *They're given an option to print-preview a report
showing the related records. *If they choose to print-preview, then
this error occurs on trying to move to another record. *If they choose
not to print-preview, then the error doesn't occur.
It appears to be something with the DoCmd property. *I'm finding some
posts on this newsgroup about getting this error after deleting
records and being careful about how subforms are linked. *If there are
no related records, then the item is deleted and I'm able to go on to
another record. *The subforms refresh just fine if the DoCmd is not
executed.
Any help or advice on how to fix or work-around this problem is
appreciated.- Hide quoted text -

- Show quoted text -

Thanks for your reply. No, I'm not implicitly doing a transaction.
Here is the "offending" code...

Private Sub Form_Error(DataErr As Integer, Response As Integer)

Select Case DataErr
Case 3200, 3146
strTitle = "Cannot delete - there are projects assigned
this department"
strMsg = "Would you like to print a list of these
projects?" & vbCrLf & vbCrLf & _
"Click on Yes to print, No to cancel."

If MsgBox(strMsg, vbYesNo, strTitle) = vbYes Then
DoCmd.OpenReport "rpt_tlkpDepartments",
acViewPreview, , , , CInt(Me.DepartmentID)
End If

Response = acDataErrContinue
Case Else

The error does not occur if the user chooses not to print the report.
If they do choose to print, then the error occurs when they try to go
to another project.

According to Help, a transaction can occur like you stated or "or an
internal transaction created by the Microsoft Jet database engine,
such as when you delete multiple records in a single operation.".
This DoCmd is executed because the user tried to delete an item in a
combobox that has related records. But the deletion did not take
place. But internally, Jet may still be in transaction mode?????
Jun 27 '08 #3
On Fri, 20 Jun 2008 06:32:28 -0700 (PDT), EManning
<ma**********@hotmail.comwrote:

Are you doing a delete above this code block? The error message seems
to indicate as much. There could be a transaction involved there.

Select queries never use transactions (implicit or not), or at least
they are never needed, and Access I'm sure won't use them.

-Tom.
>On Jun 19, 10:10*pm, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
>On Thu, 19 Jun 2008 07:18:15 -0700 (PDT), EManning

<manning_n...@hotmail.comwrote:

The term "transaction" more than likely refers to a database
transaction. As in a stored procedure with:
BEGIN TRANS
--Do Something
COMMIT TRANS

or the transaction support in DAO or ADO.

Is that what you are doing?

-Tom.
>Using A2003. *I'm receiving this error when returning from a
"DoCmd.OpenReport..." statement. *I have a tab control with a subform
on every tab. *The user selects an item from a combobox at the top of
the main form which refreshes all the subforms. *If this DoCmd
statement is not executed, then I don't receive the error. *I tried a
"DoCmd.OpenQuery..." instead of a report but get the same error.
>I want the user to be able to print-preview a report if they try to
delete an item from any combobox on the subforms where there are
related records. *They're given an option to print-preview a report
showing the related records. *If they choose to print-preview, then
this error occurs on trying to move to another record. *If they choose
not to print-preview, then the error doesn't occur.
>It appears to be something with the DoCmd property. *I'm finding some
posts on this newsgroup about getting this error after deleting
records and being careful about how subforms are linked. *If there are
no related records, then the item is deleted and I'm able to go on to
another record. *The subforms refresh just fine if the DoCmd is not
executed.
>Any help or advice on how to fix or work-around this problem is
appreciated.- Hide quoted text -

- Show quoted text -


Thanks for your reply. No, I'm not implicitly doing a transaction.
Here is the "offending" code...

Private Sub Form_Error(DataErr As Integer, Response As Integer)

Select Case DataErr
Case 3200, 3146
strTitle = "Cannot delete - there are projects assigned
this department"
strMsg = "Would you like to print a list of these
projects?" & vbCrLf & vbCrLf & _
"Click on Yes to print, No to cancel."

If MsgBox(strMsg, vbYesNo, strTitle) = vbYes Then
DoCmd.OpenReport "rpt_tlkpDepartments",
acViewPreview, , , , CInt(Me.DepartmentID)
End If

Response = acDataErrContinue
Case Else

The error does not occur if the user chooses not to print the report.
If they do choose to print, then the error occurs when they try to go
to another project.

According to Help, a transaction can occur like you stated or "or an
internal transaction created by the Microsoft Jet database engine,
such as when you delete multiple records in a single operation.".
This DoCmd is executed because the user tried to delete an item in a
combobox that has related records. But the deletion did not take
place. But internally, Jet may still be in transaction mode?????
Jun 27 '08 #4
On Jun 20, 8:49*am, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Fri, 20 Jun 2008 06:32:28 -0700 (PDT), EManning

<manning_n...@hotmail.comwrote:

Are you doing a delete above this code block? *The error message seems
to indicate as much. There could be a transaction involved there.

Select queries never use transactions (implicit or not), or at least
they are never needed, and Access I'm sure won't use them.

-Tom.
On Jun 19, 10:10*pm, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Thu, 19 Jun 2008 07:18:15 -0700 (PDT), EManning
<manning_n...@hotmail.comwrote:
The term "transaction" more than likely refers to a database
transaction. As in a stored procedure with:
BEGIN TRANS
--Do Something
COMMIT TRANS
or the transaction support in DAO or ADO.
Is that what you are doing?
-Tom.
Using A2003. *I'm receiving this error when returning from a
"DoCmd.OpenReport..." statement. *I have a tab control with a subform
on every tab. *The user selects an item from a combobox at the top of
the main form which refreshes all the subforms. *If this DoCmd
statement is not executed, then I don't receive the error. *I trieda
"DoCmd.OpenQuery..." instead of a report but get the same error.
I want the user to be able to print-preview a report if they try to
delete an item from any combobox on the subforms where there are
related records. *They're given an option to print-preview a report
showing the related records. *If they choose to print-preview, then
this error occurs on trying to move to another record. *If they choose
not to print-preview, then the error doesn't occur.
It appears to be something with the DoCmd property. *I'm finding some
posts on this newsgroup about getting this error after deleting
records and being careful about how subforms are linked. *If there are
no related records, then the item is deleted and I'm able to go on to
another record. *The subforms refresh just fine if the DoCmd is not
executed.
Any help or advice on how to fix or work-around this problem is
appreciated.- Hide quoted text -
- Show quoted text -
Thanks for your reply. *No, I'm not implicitly doing a transaction.
Here is the "offending" code...
Private Sub Form_Error(DataErr As Integer, Response As Integer)
* *Select Case DataErr
* * * *Case 3200, 3146
* * * * * *strTitle = "Cannot delete - there are projectsassigned
this department"
* * * * * *strMsg = "Would you like to print a list of these
projects?" & vbCrLf & vbCrLf & _
* * * * * * *"Click on Yes to print, No to cancel."
* * * * * *If MsgBox(strMsg, vbYesNo, strTitle) = vbYes Then
* * * * * * * *DoCmd.OpenReport "rpt_tlkpDepartments",
acViewPreview, , , , CInt(Me.DepartmentID)
* * * * * *End If
* * * * * *Response = acDataErrContinue
* * * *Case Else
The error does not occur if the user chooses not to print the report.
If they do choose to print, then the error occurs when they try to go
to another project.
According to Help, a transaction can occur like you stated or "or an
internal transaction created by the Microsoft Jet database engine,
such as when you delete multiple records in a single operation.".
This DoCmd is executed because the user tried to delete an item in a
combobox that has related records. *But the deletion did not take
place. *But internally, Jet may still be in transaction mode?????- Hide quoted text -

- Show quoted text -
Here's the coding that triggers error #3200:

Private Sub Form_Delete(Cancel As Integer)
On Error GoTo Form_Delete_Error

strTitle = "Are you sure you want to delete " & conQuote &
Me.Department & conQuote & "?"
strMsg = "Click on Yes to delete, No to cancel."
If MsgBox(strMsg, vbYesNo, strTitle) = vbNo Then
Cancel = True
End If

Form_Delete_Resume:
Exit Sub
<...snip...>
Then there'a a single line of code in the Form_BeforeDelConfirm event:

Private Sub Form_BeforeDelConfirm(Cancel As Integer, Response As
Integer)
On Error GoTo Form_BeforeDelConfirm_Error

Response = acDataErrContinue

Form_BeforeDelConfirm_Resume:
Exit Sub
<...snip...>

Thanks for your help...
Jun 27 '08 #5
On Jun 20, 9:08 am, EManning <manning_n...@hotmail.comwrote:
On Jun 20, 8:49 am, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Fri, 20 Jun 2008 06:32:28 -0700 (PDT), EManning
<manning_n...@hotmail.comwrote:
Are you doing a delete above this code block? The error message seems
to indicate as much. There could be a transaction involved there.
Select queries never use transactions (implicit or not), or at least
they are never needed, and Access I'm sure won't use them.
-Tom.
>On Jun 19, 10:10 pm, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
>On Thu, 19 Jun 2008 07:18:15 -0700 (PDT), EManning
><manning_n...@hotmail.comwrote:
>The term "transaction" more than likely refers to a database
>transaction. As in a stored procedure with:
>BEGIN TRANS
>--Do Something
>COMMIT TRANS
>or the transaction support in DAO or ADO.
>Is that what you are doing?
>-Tom.
>Using A2003. I'm receiving this error when returning from a
>"DoCmd.OpenReport..." statement. I have a tab control with a subform
>on every tab. The user selects an item from a combobox at the top of
>the main form which refreshes all the subforms. If this DoCmd
>statement is not executed, then I don't receive the error. I tried a
>"DoCmd.OpenQuery..." instead of a report but get the same error.
>I want the user to be able to print-preview a report if they try to
>delete an item from any combobox on the subforms where there are
>related records. They're given an option to print-preview a report
>showing the related records. If they choose to print-preview, then
>this error occurs on trying to move to another record. If they choose
>not to print-preview, then the error doesn't occur.
>It appears to be something with the DoCmd property. I'm finding some
>posts on this newsgroup about getting this error after deleting
>records and being careful about how subforms are linked. If there are
>no related records, then the item is deleted and I'm able to go on to
>another record. The subforms refresh just fine if the DoCmd is not
>executed.
>Any help or advice on how to fix or work-around this problem is
>appreciated.- Hide quoted text -
>- Show quoted text -
>Thanks for your reply. No, I'm not implicitly doing a transaction.
>Here is the "offending" code...
>Private Sub Form_Error(DataErr As Integer, Response As Integer)
Select Case DataErr
Case 3200, 3146
strTitle = "Cannot delete - there are projects assigned
>this department"
strMsg = "Would you like to print a list of these
>projects?" & vbCrLf & vbCrLf & _
"Click on Yes to print, No to cancel."
If MsgBox(strMsg, vbYesNo, strTitle) = vbYes Then
DoCmd.OpenReport "rpt_tlkpDepartments",
>acViewPreview, , , , CInt(Me.DepartmentID)
End If
Response = acDataErrContinue
Case Else
>The error does not occur if the user chooses not to print the report.
>If they do choose to print, then the error occurs when they try to go
>to another project.
>According to Help, a transaction can occur like you stated or "or an
>internal transaction created by the Microsoft Jet database engine,
>such as when you delete multiple records in a single operation.".
>This DoCmd is executed because the user tried to delete an item in a
>combobox that has related records. But the deletion did not take
>place. But internally, Jet may still be in transaction mode?????- Hide quoted text -
- Show quoted text -

Here's the coding that triggers error #3200:

Private Sub Form_Delete(Cancel As Integer)
On Error GoTo Form_Delete_Error

strTitle = "Are you sure you want to delete " & conQuote &
Me.Department & conQuote & "?"
strMsg = "Click on Yes to delete, No to cancel."
If MsgBox(strMsg, vbYesNo, strTitle) = vbNo Then
Cancel = True
End If

Form_Delete_Resume:
Exit Sub
<...snip...>

Then there'a a single line of code in the Form_BeforeDelConfirm event:

Private Sub Form_BeforeDelConfirm(Cancel As Integer, Response As
Integer)
On Error GoTo Form_BeforeDelConfirm_Error

Response = acDataErrContinue

Form_BeforeDelConfirm_Resume:
Exit Sub
<...snip...>

Thanks for your help...

Perhaps it would be easier to explicitly check for related records
prior to the deletion attempt rather than trap for the error that
occurs when the deletion fails. You could do this in the form's
Delete event using a dlookup() or your own custom function to
determine the existence of related records. If there are related
records, set Cancel = True in the Delete event of the form.

Bruce
Jun 27 '08 #6
On Jun 20, 5:26*pm, Bruce <deluxeinformat...@gmail.comwrote:
On Jun 20, 9:08 am, EManning <manning_n...@hotmail.comwrote:


On Jun 20, 8:49 am, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Fri, 20 Jun 2008 06:32:28 -0700 (PDT), EManning
<manning_n...@hotmail.comwrote:
Are you doing a delete above this code block? *The error message seems
to indicate as much. There could be a transaction involved there.
Select queries never use transactions (implicit or not), or at least
they are never needed, and Access I'm sure won't use them.
-Tom.
On Jun 19, 10:10 pm, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Thu, 19 Jun 2008 07:18:15 -0700 (PDT), EManning
<manning_n...@hotmail.comwrote:
The term "transaction" more than likely refers to a database
transaction. As in a stored procedure with:
BEGIN TRANS
--Do Something
COMMIT TRANS
or the transaction support in DAO or ADO.
Is that what you are doing?
-Tom.
Using A2003. *I'm receiving this error when returning from a
"DoCmd.OpenReport..." statement. *I have a tab control with a subform
on every tab. *The user selects an item from a combobox at the top of
the main form which refreshes all the subforms. *If this DoCmd
statement is not executed, then I don't receive the error. *I tried a
"DoCmd.OpenQuery..." instead of a report but get the same error.
I want the user to be able to print-preview a report if they try to
delete an item from any combobox on the subforms where there are
related records. *They're given an option to print-preview a report
showing the related records. *If they choose to print-preview, then
this error occurs on trying to move to another record. *If they choose
not to print-preview, then the error doesn't occur.
It appears to be something with the DoCmd property. *I'm findingsome
posts on this newsgroup about getting this error after deleting
records and being careful about how subforms are linked. *If there are
no related records, then the item is deleted and I'm able to go onto
another record. *The subforms refresh just fine if the DoCmd is not
executed.
Any help or advice on how to fix or work-around this problem is
appreciated.- Hide quoted text -
- Show quoted text -
Thanks for your reply. *No, I'm not implicitly doing a transaction.
Here is the "offending" code...
Private Sub Form_Error(DataErr As Integer, Response As Integer)
* *Select Case DataErr
* * * *Case 3200, 3146
* * * * * *strTitle = "Cannot delete - there are projects assigned
this department"
* * * * * *strMsg = "Would you like to print a list ofthese
projects?" & vbCrLf & vbCrLf & _
* * * * * * *"Click on Yes to print, No to cancel."
* * * * * *If MsgBox(strMsg, vbYesNo, strTitle) = vbYes Then
* * * * * * * *DoCmd.OpenReport "rpt_tlkpDepartments",
acViewPreview, , , , CInt(Me.DepartmentID)
* * * * * *End If
* * * * * *Response = acDataErrContinue
* * * *Case Else
The error does not occur if the user chooses not to print the report.
If they do choose to print, then the error occurs when they try to go
to another project.
According to Help, a transaction can occur like you stated or "or an
internal transaction created by the Microsoft Jet database engine,
such as when you delete multiple records in a single operation.".
This DoCmd is executed because the user tried to delete an item in a
combobox that has related records. *But the deletion did not take
place. *But internally, Jet may still be in transaction mode?????- Hide quoted text -
- Show quoted text -
Here's the coding that triggers error #3200:
Private Sub Form_Delete(Cancel As Integer)
On Error GoTo Form_Delete_Error
* * strTitle = "Are you sure you want to delete " & conQuote &
Me.Department & conQuote & "?"
* * strMsg = "Click on Yes to delete, No to cancel."
* * If MsgBox(strMsg, vbYesNo, strTitle) = vbNo Then
* * * * Cancel = True
* * End If
Form_Delete_Resume:
* * Exit Sub
<...snip...>
Then there'a a single line of code in the Form_BeforeDelConfirm event:
Private Sub Form_BeforeDelConfirm(Cancel As Integer, Response As
Integer)
On Error GoTo Form_BeforeDelConfirm_Error
* * Response = acDataErrContinue
Form_BeforeDelConfirm_Resume:
* * Exit Sub
<...snip...>
Thanks for your help...

Perhaps it would be easier to explicitly check for related records
prior to the deletion attempt rather than trap for the error that
occurs when the deletion fails. *You could do this in the form's
Delete event using a dlookup() or your own custom function to
determine the existence of related records. *If there are related
records, set Cancel = True in the Delete event of the form.

Bruce- Hide quoted text -

- Show quoted text -
Thanks for your reply. I tried this earlier but continued to get the
error. It's something with the DoCmd property in the Form_Delete
event.
Jun 27 '08 #7
On Jun 20, 5:26*pm, Bruce <deluxeinformat...@gmail.comwrote:
On Jun 20, 9:08 am, EManning <manning_n...@hotmail.comwrote:


On Jun 20, 8:49 am, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Fri, 20 Jun 2008 06:32:28 -0700 (PDT), EManning
<manning_n...@hotmail.comwrote:
Are you doing a delete above this code block? *The error message seems
to indicate as much. There could be a transaction involved there.
Select queries never use transactions (implicit or not), or at least
they are never needed, and Access I'm sure won't use them.
-Tom.
On Jun 19, 10:10 pm, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Thu, 19 Jun 2008 07:18:15 -0700 (PDT), EManning
<manning_n...@hotmail.comwrote:
The term "transaction" more than likely refers to a database
transaction. As in a stored procedure with:
BEGIN TRANS
--Do Something
COMMIT TRANS
or the transaction support in DAO or ADO.
Is that what you are doing?
-Tom.
Using A2003. *I'm receiving this error when returning from a
"DoCmd.OpenReport..." statement. *I have a tab control with a subform
on every tab. *The user selects an item from a combobox at the top of
the main form which refreshes all the subforms. *If this DoCmd
statement is not executed, then I don't receive the error. *I tried a
"DoCmd.OpenQuery..." instead of a report but get the same error.
I want the user to be able to print-preview a report if they try to
delete an item from any combobox on the subforms where there are
related records. *They're given an option to print-preview a report
showing the related records. *If they choose to print-preview, then
this error occurs on trying to move to another record. *If they choose
not to print-preview, then the error doesn't occur.
It appears to be something with the DoCmd property. *I'm findingsome
posts on this newsgroup about getting this error after deleting
records and being careful about how subforms are linked. *If there are
no related records, then the item is deleted and I'm able to go onto
another record. *The subforms refresh just fine if the DoCmd is not
executed.
Any help or advice on how to fix or work-around this problem is
appreciated.- Hide quoted text -
- Show quoted text -
Thanks for your reply. *No, I'm not implicitly doing a transaction.
Here is the "offending" code...
Private Sub Form_Error(DataErr As Integer, Response As Integer)
* *Select Case DataErr
* * * *Case 3200, 3146
* * * * * *strTitle = "Cannot delete - there are projects assigned
this department"
* * * * * *strMsg = "Would you like to print a list ofthese
projects?" & vbCrLf & vbCrLf & _
* * * * * * *"Click on Yes to print, No to cancel."
* * * * * *If MsgBox(strMsg, vbYesNo, strTitle) = vbYes Then
* * * * * * * *DoCmd.OpenReport "rpt_tlkpDepartments",
acViewPreview, , , , CInt(Me.DepartmentID)
* * * * * *End If
* * * * * *Response = acDataErrContinue
* * * *Case Else
The error does not occur if the user chooses not to print the report.
If they do choose to print, then the error occurs when they try to go
to another project.
According to Help, a transaction can occur like you stated or "or an
internal transaction created by the Microsoft Jet database engine,
such as when you delete multiple records in a single operation.".
This DoCmd is executed because the user tried to delete an item in a
combobox that has related records. *But the deletion did not take
place. *But internally, Jet may still be in transaction mode?????- Hide quoted text -
- Show quoted text -
Here's the coding that triggers error #3200:
Private Sub Form_Delete(Cancel As Integer)
On Error GoTo Form_Delete_Error
* * strTitle = "Are you sure you want to delete " & conQuote &
Me.Department & conQuote & "?"
* * strMsg = "Click on Yes to delete, No to cancel."
* * If MsgBox(strMsg, vbYesNo, strTitle) = vbNo Then
* * * * Cancel = True
* * End If
Form_Delete_Resume:
* * Exit Sub
<...snip...>
Then there'a a single line of code in the Form_BeforeDelConfirm event:
Private Sub Form_BeforeDelConfirm(Cancel As Integer, Response As
Integer)
On Error GoTo Form_BeforeDelConfirm_Error
* * Response = acDataErrContinue
Form_BeforeDelConfirm_Resume:
* * Exit Sub
<...snip...>
Thanks for your help...

Perhaps it would be easier to explicitly check for related records
prior to the deletion attempt rather than trap for the error that
occurs when the deletion fails. *You could do this in the form's
Delete event using a dlookup() or your own custom function to
determine the existence of related records. *If there are related
records, set Cancel = True in the Delete event of the form.

Bruce- Hide quoted text -

- Show quoted text -
I ended up writing my own deletion process. There's just something
about subforms, DoCmd, and the Form_Delete event not playing nicely
together.
Jun 27 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David Konerding | last post by:
Hello, I have written an app which opens a TCP connection to a server and uses a protocol to communicate with it. Specifically, I've written a python IMD client for the molecular dynamics...
6
by: Matthew Louden | last post by:
The following ASP code yields the following error, but actually the new record is stored in database. The same error happens when the application deletes a record, such as sqlStmt ="delete from...
1
by: Tim Hansen | last post by:
Greetings to all. I am having a problem running .asp pages for our new website. I beleive it to be an IIS problem, but all the troubleshooting has lead me nowhere. When I try to acces the...
1
by: skilla | last post by:
Hi people, I've got WinXP Pro SP2 English on my laptop and since installing SP2 got the IISRESET "No such interface supported" error. The whole story: I was writing a fairly simple ASP app...
2
by: Ronny Sigo | last post by:
Hello all, I already put the same question, only now I have more to tell ... Although I used this code before in the same routine (only the fieldname of the table differs) ___ at this point in the...
5
by: MLH | last post by:
What is the meaning of this error? Operation Must Use An Updateable Query ???
1
by: dmorand | last post by:
I'm having an issue with displaying asp pages on my server. I've determined it's obviously something with only asp because html pages display fine. I'm getting this error when I launch my asp page:...
1
by: news.microsoft.com | last post by:
I am getting the following error on the return from a function call.It specically happens on the assignment of the return value from the function call. No error happens inside the function. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.