Unable to delete a record (1 Viewer)

GSE

New member
Local time
Yesterday, 22:23
Joined
Nov 20, 2020
Messages
6
Hi all,

i have a database with one table. I have a form that provides criteria for a search via query. The output is a form that displays the results and allows for record selection and deletion. When i try to delete the record i get an error “the command or action‘delete record’ isn’t available now. If i switch to design mode and then back it works every time.
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 20:23
Joined
Oct 29, 2018
Messages
21,577
Are you able to post a sample copy of your db with test data?
 

Ranman256

Well-known member
Local time
Yesterday, 23:23
Joined
Apr 9, 2015
Messages
4,337
if your form shows 1 record and no subforms, then it should delete.
if you have a subform, then rules may prevent deletion.
send form image.
 

missinglinq

AWF VIP
Local time
Yesterday, 23:23
Joined
Jun 20, 2003
Messages
6,420
Would code are you using to retrieve the Record in question?

Linq ;0)>
 

Pat Hartman

Super Moderator
Staff member
Local time
Yesterday, 23:23
Joined
Feb 19, 2002
Messages
43,565
Is your code dirtying the record when it opens? That might prevent the delete.
 

Users who are viewing this thread

Top Bottom