izen
Registered User.
- Local time
- Today, 19:00
- Joined
- Apr 2, 2009
- Messages
- 50
Hi guys !!
I would like to use filter property to filter the report
but i dont want to fill in the propertity window, I would like it more dynamic. So I would like to add the code filter in the report form
Private Sub cmdReport_Click()
reportsample.Filter = [ProductCategoryID] = 2 and [ProductSupplierID] = 3
reportsample.Filteron = true
DoCmd.OpenReport "reportsample", acViewPreview
reportsample.filter=""
End sub
PS I dont want to use WhereCondition: because I want to do something else after I filter the report
Pls help
CHeers
I would like to use filter property to filter the report
but i dont want to fill in the propertity window, I would like it more dynamic. So I would like to add the code filter in the report form
Private Sub cmdReport_Click()
reportsample.Filter = [ProductCategoryID] = 2 and [ProductSupplierID] = 3
reportsample.Filteron = true
DoCmd.OpenReport "reportsample", acViewPreview
reportsample.filter=""
End sub
PS I dont want to use WhereCondition: because I want to do something else after I filter the report
Pls help
CHeers