I am trying to set up a form in which I am able to dbl click on a product in a list box and it will take me to that product in a form associated to its product line.
This is what I have so far:
Dim stFrmName As String
Dim rs As Object
Set rs = stFrmName.Recordset.Clone
rs.FindFirst "PartNumberPK = " & Me.List30
stFrmName.Bookmark = rs.Bookmark
stFrmName = Forms!frmProductIndex!List30
DoCmd.OpenForm stFrmName
I get a compile error for the use of stFrmName for:
Set rs = stFrmName.Recordset.Clone
This is what I have so far:
Dim stFrmName As String
Dim rs As Object
Set rs = stFrmName.Recordset.Clone
rs.FindFirst "PartNumberPK = " & Me.List30
stFrmName.Bookmark = rs.Bookmark
stFrmName = Forms!frmProductIndex!List30
DoCmd.OpenForm stFrmName
I get a compile error for the use of stFrmName for:
Set rs = stFrmName.Recordset.Clone