D
Dan @BCBS
This message has two questions:
When I click my command button (Code Below) I need it to open the form in
ADD mode but still linked to the Parent form as it is doing now.
Second, that Parent form has a list box that needs to be updated when the
record is added.
Suggestions??
This is the command button form:
Private Sub cmdProvADD_Click()
On Error GoTo Err_cmdProvADD_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "f_ProvDetail"
stLinkCriteria = "[ICNNo]=" & "'" & Me![ICNNo] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdProvADD_Click:
Exit Sub
Err_cmdProvADD_Click:
MsgBox Err.Description
Resume Exit_cmdProvADD_Click
End Sub
When I click my command button (Code Below) I need it to open the form in
ADD mode but still linked to the Parent form as it is doing now.
Second, that Parent form has a list box that needs to be updated when the
record is added.
Suggestions??
This is the command button form:
Private Sub cmdProvADD_Click()
On Error GoTo Err_cmdProvADD_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "f_ProvDetail"
stLinkCriteria = "[ICNNo]=" & "'" & Me![ICNNo] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdProvADD_Click:
Exit Sub
Err_cmdProvADD_Click:
MsgBox Err.Description
Resume Exit_cmdProvADD_Click
End Sub