J
Judy Ward
I have a form (frmSARsByElement) based on a query that asks for a parameter,
"Element".
I am trying to build a main form with a text box (txtElement) and a button
that will open frmSARByElement using what is typed into txtElement as the
parameter.
What I am using is not working, the Parameter "pop up" box still pops up:
Private Sub cmdFindSARsByElement_Click()
Dim stFrmName As String
Dim stLinkCriteria As String
stFrmName = "frmSARsByElement"
stLinkCriteria = "[Element]=" & "'" & Me.txtElement & "'"
DoCmd.OpenForm stFrmName, , , stLinkCriteria
End Sub
I would appreciate any help you can give me.
Thank you, Judy
"Element".
I am trying to build a main form with a text box (txtElement) and a button
that will open frmSARByElement using what is typed into txtElement as the
parameter.
What I am using is not working, the Parameter "pop up" box still pops up:
Private Sub cmdFindSARsByElement_Click()
Dim stFrmName As String
Dim stLinkCriteria As String
stFrmName = "frmSARsByElement"
stLinkCriteria = "[Element]=" & "'" & Me.txtElement & "'"
DoCmd.OpenForm stFrmName, , , stLinkCriteria
End Sub
I would appreciate any help you can give me.
Thank you, Judy