calpolymis1
MIS
Hi. I have a working search form and a main form. The search form has a listbox with 9th value as a link criteria(OrderID). When user double clicks a list, the main form opens by an OrderID coming from the search form's recordset. Here's the Form_Load event of the main form.
Dim rs As DAO.Recordset
Set rs = Me.Recordset.Clone
rs.FindFirst "[OrderID] = " & Forms!frmSearchForm!SearchList.Column(8)
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Set rs = Nothing
Right now I have to close the main from and doubleclick a list on the search form again to see a different record on the main form. I want to refresh main from data when I select(doubleclick) another list in search form without closing the main form. I tried something like OrdreID.requery or Form!OrderID.requery in FormLoad or FormCurrent events, but no luck. How could I achieve this? Thanks in advance.
Dim rs As DAO.Recordset
Set rs = Me.Recordset.Clone
rs.FindFirst "[OrderID] = " & Forms!frmSearchForm!SearchList.Column(8)
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Set rs = Nothing
Right now I have to close the main from and doubleclick a list on the search form again to see a different record on the main form. I want to refresh main from data when I select(doubleclick) another list in search form without closing the main form. I tried something like OrdreID.requery or Form!OrderID.requery in FormLoad or FormCurrent events, but no luck. How could I achieve this? Thanks in advance.