LOUISBUHAGIAR54
Registered User.
- Local time
- Yesterday, 22:26
- Joined
- Mar 14, 2010
- Messages
- 157
I have a subform on a form. The form is unbound and has several controls on it including a listbox, other than the subform. On double clicking the listbox a new record is added on the subform using vba.
I have programmed the event procedure to be able to focus on the new record in the subform as soon as it is added.
The problem is this. To track down the new item I am using the ID as reference. This is the autonumber. When I open the subform independently (not within the form) the ID field shows the ID number correctly. However when the form is opened with the subform within, the ID field does not show the ID number but shows #NAME?.
Does anyone know why this is happening ?
I have programmed the event procedure to be able to focus on the new record in the subform as soon as it is added.
The problem is this. To track down the new item I am using the ID as reference. This is the autonumber. When I open the subform independently (not within the form) the ID field shows the ID number correctly. However when the form is opened with the subform within, the ID field does not show the ID number but shows #NAME?.
Does anyone know why this is happening ?