I have the following code behind the DblClick on frmSearch:
--------------------------------------------------------
Private Sub SearchList_DblClick(Cancel As Integer)
On Error GoTo Err_SearchList_DblClick
Dim db As DAO.Database
Dim rst As DAO.Recordset
DoCmd.OpenForm "frmMainCustomerWTabbed"
Set rst = Forms!frmMainCustomerWTabbed.Recordset.Clone
rst.FindFirst "[ACCT] = " & Me.SearchList
Forms!frmMainCustomerWTabbed.Bookmark = rst.Bookmark
DoCmd.Close acForm, Me.Name
Exit_SearchList_DblClick:
Exit Sub
Err_SearchList_DblClick:
MsgBox Err.Description
Resume Exit_SearchList_DblClick
End Sub
--------------------------------------------------
This code opens up the frmMainCustomerWTabbed fine, but will not display the record that I searched for in the frmSearch.
I have tried to change the BoundColumn of the frmSearch data, but no change. The frmMainCustomerWTabbed just opens & displays the first record in the table.
Here is the source of the frmSearch data:
-----------------------------------------
SELECT tblcust.acct, tblcust.name1, tblcust.add1, tblcust.phone1
FROM tblcust
WHERE (((tblcust.acct) Like "*" & [Forms]![frmModelSearch]![txtSearch2] & "*")) OR (((tblcust.name1) Like "*" & [Forms]![frmModelSearch]![txtSearch2] & "*")) OR (((tblcust.add1) Like "*" & [Forms]![frmModelSearch]![txtSearch2] & "*")) OR (((tblcust.phone1) Like "*" & [Forms]![frmModelSearch]![txtSearch2] & "*"));
------------------------------------------
ps: The acct field type is a decimal.
Thanks!
jlig
--------------------------------------------------------
Private Sub SearchList_DblClick(Cancel As Integer)
On Error GoTo Err_SearchList_DblClick
Dim db As DAO.Database
Dim rst As DAO.Recordset
DoCmd.OpenForm "frmMainCustomerWTabbed"
Set rst = Forms!frmMainCustomerWTabbed.Recordset.Clone
rst.FindFirst "[ACCT] = " & Me.SearchList
Forms!frmMainCustomerWTabbed.Bookmark = rst.Bookmark
DoCmd.Close acForm, Me.Name
Exit_SearchList_DblClick:
Exit Sub
Err_SearchList_DblClick:
MsgBox Err.Description
Resume Exit_SearchList_DblClick
End Sub
--------------------------------------------------
This code opens up the frmMainCustomerWTabbed fine, but will not display the record that I searched for in the frmSearch.
I have tried to change the BoundColumn of the frmSearch data, but no change. The frmMainCustomerWTabbed just opens & displays the first record in the table.
Here is the source of the frmSearch data:
-----------------------------------------
SELECT tblcust.acct, tblcust.name1, tblcust.add1, tblcust.phone1
FROM tblcust
WHERE (((tblcust.acct) Like "*" & [Forms]![frmModelSearch]![txtSearch2] & "*")) OR (((tblcust.name1) Like "*" & [Forms]![frmModelSearch]![txtSearch2] & "*")) OR (((tblcust.add1) Like "*" & [Forms]![frmModelSearch]![txtSearch2] & "*")) OR (((tblcust.phone1) Like "*" & [Forms]![frmModelSearch]![txtSearch2] & "*"));
------------------------------------------
ps: The acct field type is a decimal.
Thanks!
jlig