I have two forms - one enters info about people. One enters info about organizations. when entering a person you choose an organization for them. If you type in on that isn't on the list then i fire this code:
MsgBox "Organization not in list - would you like to add it?", vbOKCancel, "Not on list"
If Response = vbOK Then
Me.cmbOrg_ID.Text = ""
Me.cmbOrg_ID.Value = Null
DoCmd.OpenForm "frmOrganization", acDesign, , , acFormAdd, acDialog
Response = acDataErrAdded
Response = acDataErrContinue
End If
This successfully moves me to the other form to enter a new org without triggering that damn item on list error that makes me insane. I enter the new org and close the form, returning to my blank combo which is waiting for me to choose the new org.
PROBLEM: i can not get the form to requery so the new org is not in the list. i used acDialog to avoid the Not in List error but when i close the org form it doesn't trigger the activate event in frmPeople. I have read i need to use an OK button instead of a close button but can't figure out how to set one up.
MsgBox "Organization not in list - would you like to add it?", vbOKCancel, "Not on list"
If Response = vbOK Then
Me.cmbOrg_ID.Text = ""
Me.cmbOrg_ID.Value = Null
DoCmd.OpenForm "frmOrganization", acDesign, , , acFormAdd, acDialog
Response = acDataErrAdded
Response = acDataErrContinue
End If
This successfully moves me to the other form to enter a new org without triggering that damn item on list error that makes me insane. I enter the new org and close the form, returning to my blank combo which is waiting for me to choose the new org.
PROBLEM: i can not get the form to requery so the new org is not in the list. i used acDialog to avoid the Not in List error but when i close the org form it doesn't trigger the activate event in frmPeople. I have read i need to use an OK button instead of a close button but can't figure out how to set one up.