G
Guest
I am using Allen Brown's search form in a db and it works great. I want to
double click on a record in the detail of the form and open my data entry
form to that record. Can someone tell me how to accomplish this. I tried
the code below, but it wouldn't work, it keeps asking me for an = sign says
missing expression.
Thanks in advance.
Private Sub Form_DblClick(Cancel As Integer) 'Opens the "item" form at the
selected record for edit
Dim stDocName As String
Dim strItemNumber As String
Dim strThisForm As String
stDocName = "frmItem"
strThisForm = "frmSearch"
DoCmd.OpenForm stDocName, , , "tblItems.ItemNumber =" &
[Forms]![frmSearch]![tblItems.ItemNumber], acFormEdit
DoCmd.Close acForm, strThisForm,)
double click on a record in the detail of the form and open my data entry
form to that record. Can someone tell me how to accomplish this. I tried
the code below, but it wouldn't work, it keeps asking me for an = sign says
missing expression.
Thanks in advance.
Private Sub Form_DblClick(Cancel As Integer) 'Opens the "item" form at the
selected record for edit
Dim stDocName As String
Dim strItemNumber As String
Dim strThisForm As String
stDocName = "frmItem"
strThisForm = "frmSearch"
DoCmd.OpenForm stDocName, , , "tblItems.ItemNumber =" &
[Forms]![frmSearch]![tblItems.ItemNumber], acFormEdit
DoCmd.Close acForm, strThisForm,)