Carnafex
Registered User.
- Local time
- Today, 16:51
- Joined
- Jan 19, 2004
- Messages
- 38
I have this database that has a form and a subform. The main form governs the OrderID, and the subform contains the parts listing. Each order can have many parts, and a part can have many orders (many -many). Now I have to check for duplicates within the orders, meaning just after you enter an part number for an order, it checks through all the OrderID's to see if there are any duplicates. This I have working, but I get an error when I can between orders.
The code is below, Ill describe a bit more after it.
If (RecSet.EOF)
exit sub
end if
if (part = RecSet.fields("[Part No]")) then
RecSet.edit
RecSet.fields("[Duplicate]") = true
'other stuff
RecSet.update
else
'same but sets duplicate stuff to false
end if
RecSet.movenext
So the code runs quite nicely, but the check boxes governed by Duplicate dont update. However when I move between orderID's in the main form, the program chucks a Write Conflict error.
'This record has been changed by another user since you started...' and some other stuff. If I click Copy to Clipboard or Drop Changes, the fields are updated nicely.
The thing is, I'm the only person using the database at the moment, although it will be used by many people when completed.
I was wondering if anyone knew what this problem was and if there is any way to solve it.
Any help would be appreciated, and just post if you need any more info posted by me.
Cyas
Jason
The code is below, Ill describe a bit more after it.
If (RecSet.EOF)
exit sub
end if
if (part = RecSet.fields("[Part No]")) then
RecSet.edit
RecSet.fields("[Duplicate]") = true
'other stuff
RecSet.update
else
'same but sets duplicate stuff to false
end if
RecSet.movenext
So the code runs quite nicely, but the check boxes governed by Duplicate dont update. However when I move between orderID's in the main form, the program chucks a Write Conflict error.
'This record has been changed by another user since you started...' and some other stuff. If I click Copy to Clipboard or Drop Changes, the fields are updated nicely.
The thing is, I'm the only person using the database at the moment, although it will be used by many people when completed.
I was wondering if anyone knew what this problem was and if there is any way to solve it.
Any help would be appreciated, and just post if you need any more info posted by me.
Cyas
Jason