hello
i have table named tbl_edbarat_1 contains 3 columns (id - pid - tid)
i want to delete the records
where the tid=0 and DCount("*", "tbl_Edbarat_1") > 1
i try this
but this will delete all records where tid = 0 because the query is set to delete all the records with tid = 0
any help???
i have table named tbl_edbarat_1 contains 3 columns (id - pid - tid)
i want to delete the records
where the tid=0 and DCount("*", "tbl_Edbarat_1") > 1
i try this
Code:
If DCount("*", "tbl_Edbarat_1") > 1 Then
DoCmd.SetWarnings False
DoCmd.OpenQuery "qry_Delete_Empty_Edbarat_01_Records"
DoCmd.SetWarnings True
Else
End If
but this will delete all records where tid = 0 because the query is set to delete all the records with tid = 0
any help???