I am trying to delete a record from a table called employees.
Inside my form, I have a drop down that is linked to the table.
When you select an employee in the drop down and click the delete key, it delete's the top record and not the one selected.
Any idea's??
Here is my code:
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdDeleteRecord
DoCmd.GoToRecord , , acNext
Me.Refresh
DoCmd.SetWarnings True
Inside my form, I have a drop down that is linked to the table.
When you select an employee in the drop down and click the delete key, it delete's the top record and not the one selected.
Any idea's??
Here is my code:
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdDeleteRecord
DoCmd.GoToRecord , , acNext
Me.Refresh
DoCmd.SetWarnings True