F
feeman
Hi
I have a database that lists outstanding orders customers have, On
the event procedure for txtbox Order Number on the currently opened
form outstanding orders, I have selected that on double click it will
open the form orders to the appropraite record. ie in the outstanding
orders if fred has an order and you double click on the order number
it opens up freds order from the orders form. I have used a where
statement but must have got it wrong can someone point me in the right
direction first time I have used the where statement.
Private Sub Order_Number_DblClick(Cancel As Integer)
Dim strWhere
strWhere = "me.[Order Number]" = " & forms!Orders.[Order Number]"
DoCmd.OpenForm "orders", , , strWhere
End Sub
I have a database that lists outstanding orders customers have, On
the event procedure for txtbox Order Number on the currently opened
form outstanding orders, I have selected that on double click it will
open the form orders to the appropraite record. ie in the outstanding
orders if fred has an order and you double click on the order number
it opens up freds order from the orders form. I have used a where
statement but must have got it wrong can someone point me in the right
direction first time I have used the where statement.
Private Sub Order_Number_DblClick(Cancel As Integer)
Dim strWhere
strWhere = "me.[Order Number]" = " & forms!Orders.[Order Number]"
DoCmd.OpenForm "orders", , , strWhere
End Sub