I have the following code. My delimma occurs because the form i'm opening, frm_ToolGeneralInformation, is used in my database to add new records, hence, I have set the data entry property to yes. I'm wanting to use this same form to update information on the Tool deleted in the subform, and to do this, I need to change the dataentry property to false (or no). When I run this code, I get an error that Access can not find the form frm_ToolGeneralInformation
Any help would be appreciated!
PHP:
Private Sub Form_Delete(Cancel As Integer)Private Sub Form_Delete(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
Dim strMsg As String
Forms!frm_ToolGeneralInformation.DataEntry = False
strMsg = "Update the Tool Information form"
Beep
If MsgBox(strMsg, vbExclamation + vbOKOnly, "Tool Database") = vbOK Then
stDocName = "frm_ToolGeneralInformation"
DoCmd.OpenForm stDocName, , , "[Tool] = Forms!frm_Tool!sfrm_CToolInfo!Tool"
End If
End Sub
Any help would be appreciated!
