I have the following code which works under access 2010
Me.Refresh
DoCmd.SetWarnings False
Me.AllowDeletions = True
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdDeleteRecord
Me.AllowDeletions = False
DoCmd.SetWarnings True
Recently a user who only has access 2007 gets error 2046 on the line
DoCmd.RunCommand acCmdDeleteRecord
This is a production error so haven't investigated/googled anything yet. Any help appreciated
Me.Refresh
DoCmd.SetWarnings False
Me.AllowDeletions = True
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdDeleteRecord
Me.AllowDeletions = False
DoCmd.SetWarnings True
Recently a user who only has access 2007 gets error 2046 on the line
DoCmd.RunCommand acCmdDeleteRecord
This is a production error so haven't investigated/googled anything yet. Any help appreciated