A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Operation Not Supported In Transactions"



 
 
Thread Tools Display Modes
  #1  
Old December 7th, 2006, 03:23 PM posted to microsoft.public.access.forms
PHisaw
external usenet poster
 
Posts: 224
Default "Operation Not Supported In Transactions"

Can someone please explain this new message I'm getting when I delete records
from a subform in datasheet view?

Thanks in advance,
Pam
  #2  
Old December 7th, 2006, 03:33 PM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default "Operation Not Supported In Transactions"

The problem might be the event you chose to delete the record.

Access uses a transaction around its own deletions and edits. If something
like this is already in progress, your deletion clashes with it.

Since you are in datasheet view, you are not using a command button. If you
are using something like the KeyDown event, be sure to destroy the keystoke
first, e.g.:
Me.KeyCode = 0

Then test if the form is dirty, and if so undo it:
If Me.Dirty Then Me.Dirty = False

Then check that you are not at a new record, and delete:
If Not Me.NewRecord Then RunCommand acCmdDeleteRecord

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"PHisaw" wrote in message
...
Can someone please explain this new message I'm getting when I delete
records
from a subform in datasheet view?

Thanks in advance,
Pam



  #3  
Old December 7th, 2006, 03:42 PM posted to microsoft.public.access.forms
PHisaw
external usenet poster
 
Posts: 224
Default "Operation Not Supported In Transactions"

Allen,

Thanks for the reply. I use the mouse to highlight all the records I want
to delete down the left side of column and then use the "X" delete shortcut
button at the top of the screen. This is the first time I've ran across this
error. Should I use something else when there is a need to delete?

Pam

"Allen Browne" wrote:

The problem might be the event you chose to delete the record.

Access uses a transaction around its own deletions and edits. If something
like this is already in progress, your deletion clashes with it.

Since you are in datasheet view, you are not using a command button. If you
are using something like the KeyDown event, be sure to destroy the keystoke
first, e.g.:
Me.KeyCode = 0

Then test if the form is dirty, and if so undo it:
If Me.Dirty Then Me.Dirty = False

Then check that you are not at a new record, and delete:
If Not Me.NewRecord Then RunCommand acCmdDeleteRecord

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"PHisaw" wrote in message
...
Can someone please explain this new message I'm getting when I delete
records
from a subform in datasheet view?

Thanks in advance,
Pam




  #4  
Old December 7th, 2006, 03:45 PM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default "Operation Not Supported In Transactions"

The Delete button on the toolbar should work fine, unless something else is
going on.

Have you opened recordsets in code?
Is the record dirty at the time?
Is the form bound to a query that is not updatable?
Is there any other code running at the time?
Have you used OpenTrans in code?
Is there any other form or process open at the same time, referring to the
same records?

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"PHisaw" wrote in message
...
Allen,

Thanks for the reply. I use the mouse to highlight all the records I want
to delete down the left side of column and then use the "X" delete
shortcut
button at the top of the screen. This is the first time I've ran across
this
error. Should I use something else when there is a need to delete?

Pam

"Allen Browne" wrote:

The problem might be the event you chose to delete the record.

Access uses a transaction around its own deletions and edits. If
something
like this is already in progress, your deletion clashes with it.

Since you are in datasheet view, you are not using a command button. If
you
are using something like the KeyDown event, be sure to destroy the
keystoke
first, e.g.:
Me.KeyCode = 0

Then test if the form is dirty, and if so undo it:
If Me.Dirty Then Me.Dirty = False

Then check that you are not at a new record, and delete:
If Not Me.NewRecord Then RunCommand acCmdDeleteRecord

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"PHisaw" wrote in message
...
Can someone please explain this new message I'm getting when I delete
records
from a subform in datasheet view?

Thanks in advance,
Pam






  #5  
Old December 7th, 2006, 07:10 PM posted to microsoft.public.access.forms
PHisaw
external usenet poster
 
Posts: 224
Default "Operation Not Supported In Transactions"

Allen,

Please see responses to your questions below. I'm still not sure what is
causing this, but would very much like to find out.

Pam

"Allen Browne" wrote:

The Delete button on the toolbar should work fine, unless something else is
going on.

Have you opened recordsets in code?

The only code associated with this is the NotInList and an update for a
hidden text box to populate another subform. I've posted those below:
Private Sub cboPartNumber_NotInList(NewData As String, Response As Integer)

Dim DB As Database

Set DB = CurrentDb

DB.Execute "INSERT INTO tAssemblyDescriptions (PartNumber) VALUES (""" &
NewData & """)", dbFailOnError


Response = acDataErrAdded

Exit_cboPartNumber_NotInList:
Exit Sub

Err_cboPartNumber_NotInList:
MsgBox Err.Description
Resume Exit_cboPartNumber_NotInList
End Sub

Private Sub cboPartNumber_Exit(Cancel As Integer)
Forms![fManufacturing]!txtPartNumber.Requery
End Sub

Is the record dirty at the time? Not sure, please explain.


Is the form bound to a query that is not updatable? It's recordsource is a table.


Is there any other code running at the time?


Have you used OpenTrans in code? No


Is there any other form or process open at the same time, referring to the
same records? No

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"PHisaw" wrote in message
...
Allen,

Thanks for the reply. I use the mouse to highlight all the records I want
to delete down the left side of column and then use the "X" delete
shortcut
button at the top of the screen. This is the first time I've ran across
this
error. Should I use something else when there is a need to delete?

Pam

"Allen Browne" wrote:

The problem might be the event you chose to delete the record.

Access uses a transaction around its own deletions and edits. If
something
like this is already in progress, your deletion clashes with it.

Since you are in datasheet view, you are not using a command button. If
you
are using something like the KeyDown event, be sure to destroy the
keystoke
first, e.g.:
Me.KeyCode = 0

Then test if the form is dirty, and if so undo it:
If Me.Dirty Then Me.Dirty = False

Then check that you are not at a new record, and delete:
If Not Me.NewRecord Then RunCommand acCmdDeleteRecord

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"PHisaw" wrote in message
...
Can someone please explain this new message I'm getting when I delete
records
from a subform in datasheet view?

Thanks in advance,
Pam






  #6  
Old December 8th, 2006, 02:07 AM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default "Operation Not Supported In Transactions"

Try it with the focus in something other than cboPartNumber.
If the problem is still there, then that code is not a contributing factor.
(I am assuming this form is not bound to tAssemblyDescriptions.)

You could check that you have the latest service pack for your version of
Office and JET.

Other than that, I don't know what to suggest.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"PHisaw" wrote in message
news
Allen,

Please see responses to your questions below. I'm still not sure what is
causing this, but would very much like to find out.

Pam

"Allen Browne" wrote:

The Delete button on the toolbar should work fine, unless something else
is
going on.

Have you opened recordsets in code?

The only code associated with this is the NotInList and an update for a
hidden text box to populate another subform. I've posted those below:
Private Sub cboPartNumber_NotInList(NewData As String, Response As
Integer)

Dim DB As Database

Set DB = CurrentDb

DB.Execute "INSERT INTO tAssemblyDescriptions (PartNumber) VALUES (""" &
NewData & """)", dbFailOnError


Response = acDataErrAdded

Exit_cboPartNumber_NotInList:
Exit Sub

Err_cboPartNumber_NotInList:
MsgBox Err.Description
Resume Exit_cboPartNumber_NotInList
End Sub

Private Sub cboPartNumber_Exit(Cancel As Integer)
Forms![fManufacturing]!txtPartNumber.Requery
End Sub

Is the record dirty at the time? Not sure, please explain.


Is the form bound to a query that is not updatable? It's recordsource is
a table.


Is there any other code running at the time?


Have you used OpenTrans in code? No


Is there any other form or process open at the same time, referring to
the
same records? No

"PHisaw" wrote in message
...
Allen,

Thanks for the reply. I use the mouse to highlight all the records I
want
to delete down the left side of column and then use the "X" delete
shortcut
button at the top of the screen. This is the first time I've ran
across
this
error. Should I use something else when there is a need to delete?

Pam

"Allen Browne" wrote:

The problem might be the event you chose to delete the record.

Access uses a transaction around its own deletions and edits. If
something
like this is already in progress, your deletion clashes with it.

Since you are in datasheet view, you are not using a command button.
If
you
are using something like the KeyDown event, be sure to destroy the
keystoke
first, e.g.:
Me.KeyCode = 0

Then test if the form is dirty, and if so undo it:
If Me.Dirty Then Me.Dirty = False

Then check that you are not at a new record, and delete:
If Not Me.NewRecord Then RunCommand acCmdDeleteRecord

"PHisaw" wrote in message
...
Can someone please explain this new message I'm getting when I
delete
records
from a subform in datasheet view?

Thanks in advance,
Pam



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.