L
lmv
I have a cmd on my Form to open a report: rptReturn
This needs to filter by the item(OrderID) AND returned ck box. I have read
some things about needing to make a qry to return the ckbox true info but I
don't know how. And then I need to filter the form... here is what I have so
far. Can anyone help me to clarify exactly what to build as far as the qry
goes.
Form:OrdersWDetails
Sub Form nameroducts List
based on qry: Order Details Extended
Control Source urchaseOrderSubform
check box
Name: ckRet
Control Source :Returned
Private Sub cmdRefund_Click()
On Error GoTo Err_cmdRefund_Click
DoCmd.OpenReport "rptReturns", acPreview
Reports![rptReturns].Filter = "OrderID = " & Me![Product List].ckReturned
Reports![rptReturns].FilterOn = True
Exit_cmdRefund_Click:
Exit Sub
Err_cmdRefund_Click:
MsgBox err.Description
Resume Exit_cmdRefund_Click
End Sub
Thanks!!
lmv
This needs to filter by the item(OrderID) AND returned ck box. I have read
some things about needing to make a qry to return the ckbox true info but I
don't know how. And then I need to filter the form... here is what I have so
far. Can anyone help me to clarify exactly what to build as far as the qry
goes.
Form:OrdersWDetails
Sub Form nameroducts List
based on qry: Order Details Extended
Control Source urchaseOrderSubform
check box
Name: ckRet
Control Source :Returned
Private Sub cmdRefund_Click()
On Error GoTo Err_cmdRefund_Click
DoCmd.OpenReport "rptReturns", acPreview
Reports![rptReturns].Filter = "OrderID = " & Me![Product List].ckReturned
Reports![rptReturns].FilterOn = True
Exit_cmdRefund_Click:
Exit Sub
Err_cmdRefund_Click:
MsgBox err.Description
Resume Exit_cmdRefund_Click
End Sub
Thanks!!
lmv