I have a form for user data entry. I need to delete some records using the form with the following code:
DoCmd.OpenTable "CaseNumber", acViewNormal, acEdit
DoCmd.SetWarnings False
DoCmd.GoToRecord acTable, "CaseNumber", acFirst
DoCmd.RunCommand acCmdDeleteRecord
Me.Refresh
DoCmd.SetWarnings True
The problem is that it opens the table for the user. I want just the form visible to the user. Any way to open the table to delete records without the user seeing it?
Thanks
Wayne