DoCmd.DomenuItem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

This is failing with code 2065. Can you help?

DoCmd.DoMenuItem acEditMenu, acSelectRecord, acDelete, acMenuVer70

I am using this on exit of a field. If the existing information already is in
the database then select what has been typed into the field and delete
the typing and cancel the move (enter).

Thank you.

Flemming Ast
 
Flemming

Consider using a BeforeUpdate event to determine the presence, then
DoCmd.Undo
to undo the entry.
 
Back
Top