IMO
Now Known as ___
- Local time
- Today, 13:02
- Joined
- Sep 11, 2002
- Messages
- 723
Hi All,
Can someone tell me why this code isn't working? It's driving me nuts! I'm getting the error 'Method or data member not found' and .FindFirst is highlighted.
Thanks in advance
IMO
Private Sub List8_DblClick(Cancel As Integer)
On Error GoTo Err_listbox_Click
Dim stDocName As String
Dim rst As Recordset, strCriteria As String
stDocName = "frmProducts"
strCriteria = "[ProductID]=" & "'" & Me![List8] & "'"
DoCmd.OpenForm stDocName
Set rst = Forms!editform.RecordsetClone
rst.FindFirst strCriteria
Forms!editform.Bookmark = rst.Bookmark
Me!List8 = ""
Exit_listbox_Click:
Exit Sub
Can someone tell me why this code isn't working? It's driving me nuts! I'm getting the error 'Method or data member not found' and .FindFirst is highlighted.
Thanks in advance
IMO
Private Sub List8_DblClick(Cancel As Integer)
On Error GoTo Err_listbox_Click
Dim stDocName As String
Dim rst As Recordset, strCriteria As String
stDocName = "frmProducts"
strCriteria = "[ProductID]=" & "'" & Me![List8] & "'"
DoCmd.OpenForm stDocName
Set rst = Forms!editform.RecordsetClone
rst.FindFirst strCriteria
Forms!editform.Bookmark = rst.Bookmark
Me!List8 = ""
Exit_listbox_Click:
Exit Sub