C
Compuhelpmt
I have an add customer button that inserts a new record which works fine:
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
But I would like it to check a home_phone field first for an existing phone
number. If the number is already in the table, then a new record isn't
added, and the form jumps to that record. If the number isn't in the table,
then a new record is added with the new phone number "pasted" in.
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
But I would like it to check a home_phone field first for an existing phone
number. If the number is already in the table, then a new record isn't
added, and the form jumps to that record. If the number isn't in the table,
then a new record is added with the new phone number "pasted" in.