gerrythefish
Registered User.
- Local time
- Yesterday, 22:52
- Joined
- Oct 11, 2014
- Messages
- 28
Hi all,
What am I not understanding? Access 2013 with SQL backend.
I have a subform datasheet. If I try to right click to delete a record I get an error that I cant delete because its based on a view that has 2 tables in it.
So I tried to cancel the delete event, run a simple delete query on 1 table, The record does successfully delete but then Im left with a record with "#deleted" in each field.
If I try to requery the datasheet I get error 3246 Operation not supprted in transactions.
Heres my form delete event
On Error GoTo ErrorHandler
DoCmd.RunSQL "DELETE FROM PIT_PDDb_Module WHERE PIT_Module_ID = " & Me.PIT_Module_ID
Me.Requery
Cancel = True
What am I not understanding? Access 2013 with SQL backend.
I have a subform datasheet. If I try to right click to delete a record I get an error that I cant delete because its based on a view that has 2 tables in it.
So I tried to cancel the delete event, run a simple delete query on 1 table, The record does successfully delete but then Im left with a record with "#deleted" in each field.
If I try to requery the datasheet I get error 3246 Operation not supprted in transactions.
Heres my form delete event
On Error GoTo ErrorHandler
DoCmd.RunSQL "DELETE FROM PIT_PDDb_Module WHERE PIT_Module_ID = " & Me.PIT_Module_ID
Me.Requery
Cancel = True
Last edited: