G
Guest
The following code was supplied by Tina, and I found it useful, but I need a
bit of help tweaking it
When I tell it I want to add to the list, the data entry form pops open just
fine, and takes the new data. I then save the new data, and close the form.
When I return to the original drop down list, I continue to get the message
....Not on list, although The new entry now appears in the list. If I then
scroll to the item, the form accepts it and I can continue.
Obviously, this is a bit awkward.
How I can add the new item on the popup data entry form, close it, and have
my cursor be returned to the dropdown list with the new data already selected
and ready to go to the next field?
Thanks
Lele
bit of help tweaking it
--Private Sub td_empID_NotInList(NewData As String, Response As Integer)
If MsgBox("Do you want to add this employee to the droplist?", _
vbYesNo + vbDefaultButton2, "INITIALS NOT IN LIST") = vbYes Then
DoCmd.OpenForm "frm01Employees_pop", , , , acFormAdd, acDialog, _
UCase(NewData)
Response = acDataErrAdded
Else
Response = acDataErrContinue
End If
End Sub
When I tell it I want to add to the list, the data entry form pops open just
fine, and takes the new data. I then save the new data, and close the form.
When I return to the original drop down list, I continue to get the message
....Not on list, although The new entry now appears in the list. If I then
scroll to the item, the form accepts it and I can continue.
Obviously, this is a bit awkward.
How I can add the new item on the popup data entry form, close it, and have
my cursor be returned to the dropdown list with the new data already selected
and ready to go to the next field?
Thanks
Lele