L
lmv
I am using the search code from Dev Ashish and there is an unbound lstResult
box that searches fields that it gets from my tbl, qry etc list that are on
my computer.
There is an orderID field available in my qry and I want to be able to dbl
clik the unbound lstresult record and have it open in the form. I have tried
the following and a peramiter box keeps opening asking for the ProjectID. If
I put nothing in /or somethin in the box the form opens but not with the
record from the unbound search. Does anyone have an idea how to get it to
open to the specific record?
Thanks
Private Sub lstResult_DblClick(Cancel As Integer)
Dim stDocName As String
Dim StLinkCriteria As String
stDocName = "OrdersWDetails" 'my form
StLinkCriteria = "[OrderID]=" & Me![lstResult]
DoCmd.OpenForm stDocName, , , StLinkCriteria
End Sub
box that searches fields that it gets from my tbl, qry etc list that are on
my computer.
There is an orderID field available in my qry and I want to be able to dbl
clik the unbound lstresult record and have it open in the form. I have tried
the following and a peramiter box keeps opening asking for the ProjectID. If
I put nothing in /or somethin in the box the form opens but not with the
record from the unbound search. Does anyone have an idea how to get it to
open to the specific record?
Thanks
Private Sub lstResult_DblClick(Cancel As Integer)
Dim stDocName As String
Dim StLinkCriteria As String
stDocName = "OrdersWDetails" 'my form
StLinkCriteria = "[OrderID]=" & Me![lstResult]
DoCmd.OpenForm stDocName, , , StLinkCriteria
End Sub