J
JJ
I am trying to open a second form from a the first one
when I click on a button and the second form is supposed
to show the information for the field Application Name
which needs to be pulled from the first form.
I have tried using:
Private Sub cmdInterfaceList_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmApplicationInterface"
stLinkCriteria = "[Application Name]"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
This opens the second form, but the Application Name that
it uses does not match the one showing in the first form.
I have also tried using:
Private Sub cmdInterfaceList_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmApplicationInterface"
stLinkCriteria = "[Application Name]= Me![Application
Name]"
DoCmd.OpenForm stDocName, , , stLinkCriteria
This opens a small window that asks you to enter the
Parameter Value for Me!Application Name.
What can I change to make the second window open with the
correct Application Name without having to type it into a
parameter window?
Thanks!
when I click on a button and the second form is supposed
to show the information for the field Application Name
which needs to be pulled from the first form.
I have tried using:
Private Sub cmdInterfaceList_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmApplicationInterface"
stLinkCriteria = "[Application Name]"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
This opens the second form, but the Application Name that
it uses does not match the one showing in the first form.
I have also tried using:
Private Sub cmdInterfaceList_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmApplicationInterface"
stLinkCriteria = "[Application Name]= Me![Application
Name]"
DoCmd.OpenForm stDocName, , , stLinkCriteria
This opens a small window that asks you to enter the
Parameter Value for Me!Application Name.
What can I change to make the second window open with the
correct Application Name without having to type it into a
parameter window?
Thanks!