Babycat
Member
- Local time
 - Today, 20:52
 
- Joined
 - Mar 31, 2020
 
- Messages
 - 291
 
There is something really strange. To demonstrate i put record selectors back and a message box on the current event. Filter the list then click on a record. It moves back to the first record twice. I cannot figure out. There must be something linked I do not see, because the code should not do that.
I can fix this by modifying the code, but I think you could try rebuilding the form.
A side-question,
In your modified code:
		Code:
	
	
	Private Sub User_MainProductShowDetail()
    Dim rs As DAO.Recordset
    
    Set rs = Me.Form.Parent.Form.Recordset
    rs.FindFirst "[VendorID] = " & Txt_ID
    If rs.NoMatch Then MsgBox "Unknow Error - No Vendor Name " & Txt_QField1 & " !"
    
End Sub
	How did you nevigate main form to current record of subform?
I thought we have to use bookmark technique such as
		Code:
	
	
	Me.Form.Parent.Form.Bookmark = .Bookmark