hello
i have datasheet display on which double click event i added following
Private Sub Name_DblClick(Cancel As Integer)
Dim frmMyForm As Form
Dim stDocName As String
Dim rs As Object, strCriteria As String
stDocName = "frmEnterRecipes"
strCriteria = "[Name]=" & "'" & Me![Name] & "'"
DoCmd.OpenForm stDocName
Set rs = Forms![frmEnterRecipes].Recordset.Clone
rs.FindFirst strCriteria
Forms![frmEnterRecipes].Bookmark = rs.Bookmark
End Sub
want to open "frmEnterRecipes" on double click of a selected recipe in datasheet,..........works fine........but
when itjumps to open "frmEnterRecipes" it displays the desired perfectly well, but all of them so that one can cycle around all 1000 of them,
i want to accomplish, when i double click it opens that and only one recipe in edit mode , not all of them. (I am using the same frmEnterRecipes as add and edit mode through switchboard).
i hope i explained well..
thanks in advance
i have datasheet display on which double click event i added following
Private Sub Name_DblClick(Cancel As Integer)
Dim frmMyForm As Form
Dim stDocName As String
Dim rs As Object, strCriteria As String
stDocName = "frmEnterRecipes"
strCriteria = "[Name]=" & "'" & Me![Name] & "'"
DoCmd.OpenForm stDocName
Set rs = Forms![frmEnterRecipes].Recordset.Clone
rs.FindFirst strCriteria
Forms![frmEnterRecipes].Bookmark = rs.Bookmark
End Sub
want to open "frmEnterRecipes" on double click of a selected recipe in datasheet,..........works fine........but
when itjumps to open "frmEnterRecipes" it displays the desired perfectly well, but all of them so that one can cycle around all 1000 of them,
i want to accomplish, when i double click it opens that and only one recipe in edit mode , not all of them. (I am using the same frmEnterRecipes as add and edit mode through switchboard).
i hope i explained well..
thanks in advance