I have 2 subforms on a form in a tab control that are virtually the same, except the one starts with a code of an item and the other one with a description should you not have a code.
I want to use this code below to delete a record from both subforms at the same time.
How do i amend the code and add the 2nd subform called "Fis_MonthcntSF " to it?
pls help
I want to use this code below to delete a record from both subforms at the same time.
How do i amend the code and add the 2nd subform called "Fis_MonthcntSF " to it?
Code:
Private Sub DeleteEntry_Click()
On Error GoTo DeleteEntry_Click_Err
Me.Fis_StocktakeSF.SetFocus
With Me.Fis_StocktakeSF
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
DeleteEntry_Click_Exit:
Exit Sub
DeleteEntry_Click_Err:
MsgBox Error$
Resume DeleteEntry_Click_Exit
End With
End Sub
Comment