In the past few months I've asked a lot of question.
Two in particular were in essence
1. How do I back out updates
2. How do I load more than 1 instance of a form
I got some great feed back and implemented both with help from this community
In isolation of each other they work a treat.
The problem I'm encountering is if I 'mix' the 2.
If for example I open instance 1 of form 1 and then make a change
I then try an open instance 2 of of form 1 I get error "Run Time Error '2074'. This operation is not supported within transaction". The line of code it stops on is .FilterOn = True
Set frm = New Form_ListSalesItems
With frm
.Filter = "salesid = " & Split(strOpenArgs, "|", 3)(0) & " and customerid = " & Split(strOpenArgs, "|", 3)(1)
.FilterOn = True
.OrderBy = "ReferenceNumber"
.OrderByOn = True
End With
If I open instance 1 of form 1 and before making any changes
I open instance 2 of of form 1 then all appears OK. However if I make changes to both forms and then when committing the changes not all are made.
I suspect the problem each transaction is 'related' to the original form and not the instance. Can I relate it to the instance.
The code to start transaction is
DBEngine.BeginTrans
Two in particular were in essence
1. How do I back out updates
2. How do I load more than 1 instance of a form
I got some great feed back and implemented both with help from this community
In isolation of each other they work a treat.
The problem I'm encountering is if I 'mix' the 2.
If for example I open instance 1 of form 1 and then make a change
I then try an open instance 2 of of form 1 I get error "Run Time Error '2074'. This operation is not supported within transaction". The line of code it stops on is .FilterOn = True
Set frm = New Form_ListSalesItems
With frm
.Filter = "salesid = " & Split(strOpenArgs, "|", 3)(0) & " and customerid = " & Split(strOpenArgs, "|", 3)(1)
.FilterOn = True
.OrderBy = "ReferenceNumber"
.OrderByOn = True
End With
If I open instance 1 of form 1 and before making any changes
I open instance 2 of of form 1 then all appears OK. However if I make changes to both forms and then when committing the changes not all are made.
I suspect the problem each transaction is 'related' to the original form and not the instance. Can I relate it to the instance.
The code to start transaction is
DBEngine.BeginTrans