AlexLMillington
New member
- Local time
- Today, 13:49
- Joined
- Aug 5, 2018
- Messages
- 4
Hi all,
I have a form with a subform in it. In the afterupdate event of the subform I have a macro set to run which checks whether the value in a certain control is a particular number. If it is then I want to open up another form to enter some additional detail about that record.
The problem I have is that while I can check whether the control contains that number and if it does, I can open the new form, the record in the original subform has moved to a new record or the next record as a result of the user pressing 'enter' when the original data was changed.
What this means is that all the data in the new form, which relies on the current record of the original form still being the record that requires the additional data, #REFs out.
I have tried all the ways I can think of to stop the record in the original subform from moving to a new record or the next record but to no avail. Is there anyone out there who can help with this?
Thanks
Alex
I have a form with a subform in it. In the afterupdate event of the subform I have a macro set to run which checks whether the value in a certain control is a particular number. If it is then I want to open up another form to enter some additional detail about that record.
The problem I have is that while I can check whether the control contains that number and if it does, I can open the new form, the record in the original subform has moved to a new record or the next record as a result of the user pressing 'enter' when the original data was changed.
What this means is that all the data in the new form, which relies on the current record of the original form still being the record that requires the additional data, #REFs out.
I have tried all the ways I can think of to stop the record in the original subform from moving to a new record or the next record but to no avail. Is there anyone out there who can help with this?
Thanks
Alex