Record Deleting

XQuilet

New member
Local time
Today, 16:08
Joined
Oct 29, 2012
Messages
8
Hi and Greeting

I need some help with deleting of Record.

currently i have a form with subform datasheet

Form from Purchase order table
Subform from serial table(Brand,Model,Type,Location,Serial) with serialtrans table(InOut,AQty,Comment)
(SELECT tbl_Serial.*, tbl_SerialTrans.*
FROM tbl_Serial LEFT JOIN tbl_SerialTrans ON tbl_Serial.SerialID = tbl_SerialTrans.SerialID;)

when i click on the datasheet row and delete the row it only delete the record from tbl_SerialTrans but record on tbl_Serial was not deleted


is there any way to delete it?


Thanks in advance!
 
The way I prefer to do this is with a Delete button that runs VBA code to delete records from all the related tables with delete queries.

If you are really feeling lucky

***** Make sure you make a backup before proceeding******

you could try turning on cascading deletes for the relationship.

***** Make sure you make a backup before testing******

FWIW: I NEVER use cascading deletes. I have seen it lead to mass amounts of data getting lost.
 
Last edited:
ECHO THAT:
***** Make sure you make a backup before proceeding******

***** Make sure you make a backup before testing******



File\SaveAs\ADVANCED\Backup Database

Cheers!:)
Goh
 

Users who are viewing this thread

Back
Top Bottom