In Access mdb the following code would open form2 to the record that was selected via an click event on form1. It doesn't work in Project. Form2 opens, but goes to record 1, not the record selected on Form1. Am I missing a step in this? Any help is appreciated.
Private Sub HLTAG_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmINVEditALL"
stLinkCriteria = "[HLTAG] = '" & Me![HLTAG] & "'"
DoCmd.OpenForm stDocName, acNormal, , stLinkCriteria
End Sub
Private Sub HLTAG_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmINVEditALL"
stLinkCriteria = "[HLTAG] = '" & Me![HLTAG] & "'"
DoCmd.OpenForm stDocName, acNormal, , stLinkCriteria
End Sub