NotAnExpert
Registered User.
- Local time
- Today, 16:25
- Joined
- Feb 3, 2017
- Messages
- 46
Hi, I have a mainform, and the mainform has 3 subforms on it. For the sake of this exercise I will call them Subform1, Subform2 and Subform3.
Part 1
On the mainform, when I type an ordernumber into the search box, a query shows records with items on that order on Subform1. This works perfectly fine.
When I double click on a record on Subform1, details of that record are added to a new record on Subform2. This also works perfectly fine.
Part 2
On the mainform, I have another area where I can search for a materials, a query shows records matching the search in Subform3. This also works perfectly fine.
When I double click on a record on Subform3, the MaterialID value should be passed to a field on the selected record in Subform2. This DOESN'T work perfectly fine.
I am faced with Run-time error '3021': No current record. This leads me to believe there is a problem with the .edit part of the recordset.
What I do find however is that if I close the form and go back in, where the record on Subform2 created in Part1 already exists and is saved, double clicking a record on Subform3 (as per Part2) works as intended.
So my question is...
What route should I take ideally to make this work properly? I know i'm missing something, but i'm not sure what...
Part 1
On the mainform, when I type an ordernumber into the search box, a query shows records with items on that order on Subform1. This works perfectly fine.
When I double click on a record on Subform1, details of that record are added to a new record on Subform2. This also works perfectly fine.
Part 2
On the mainform, I have another area where I can search for a materials, a query shows records matching the search in Subform3. This also works perfectly fine.
When I double click on a record on Subform3, the MaterialID value should be passed to a field on the selected record in Subform2. This DOESN'T work perfectly fine.
I am faced with Run-time error '3021': No current record. This leads me to believe there is a problem with the .edit part of the recordset.
What I do find however is that if I close the form and go back in, where the record on Subform2 created in Part1 already exists and is saved, double clicking a record on Subform3 (as per Part2) works as intended.
So my question is...
What route should I take ideally to make this work properly? I know i'm missing something, but i'm not sure what...