how to delete a single record in datasheet subform from main/parent form.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jerry Maiapu
    Contributor
    • Feb 2010
    • 259

    how to delete a single record in datasheet subform from main/parent form.

    Hi
    Please help.

    How can I delete i single record in a datsheet subform from main form using a delete button on the parent form.?

    i will be more grateful for your help...


    jm
  • nico5038
    Recognized Expert Specialist
    • Nov 2006
    • 3080

    #2
    You can use a delete query referring to the current value from the subform.
    Check http://www.mvps.org/access/forms/frm0031.htm for the naming convention.
    You can use the:
    Code:
    currentdb.execute ("delete * from tblX WHERE ID=" .... )
    For the deletion of a specific row in the OnClick event of a button.

    Nic;o)

    Comment

    Working...