G
Guest
Could someone please help me with the code I need to add to the below code to
have the fome open in ADD-Mode.
This command button links the forms by "ICNNO" opening the form "f_ProvADD"
It currently opens the from with populated information. I need to have it
open in add mode but still linked.
Private Sub cmdProvADD_Click()
On Error GoTo Err_cmdProvADD_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "f_ProvADD"
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
have the fome open in ADD-Mode.
This command button links the forms by "ICNNO" opening the form "f_ProvADD"
It currently opens the from with populated information. I need to have it
open in add mode but still linked.
Private Sub cmdProvADD_Click()
On Error GoTo Err_cmdProvADD_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "f_ProvADD"
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