S
Spidey3721
The following is the DoCmd I am trying to use to open a report from a form
that has a combobox ([catcombo]) - I want the report to only show records
with a category that matches this combobox. The report's record source is
currently set to the table, [Master Cost Codes] and has a textbox bound to
the [category] field.
Right now the command button is showing the report, but is not applying the
filter...
strFilter = "[Master Cost Codes].[Category] = Forms![custom cost
report].[catcombo]"
stDocName = "Custom Cost Report"
DoCmd.OpenReport stDocName, acPreview, strFilter
that has a combobox ([catcombo]) - I want the report to only show records
with a category that matches this combobox. The report's record source is
currently set to the table, [Master Cost Codes] and has a textbox bound to
the [category] field.
Right now the command button is showing the report, but is not applying the
filter...
strFilter = "[Master Cost Codes].[Category] = Forms![custom cost
report].[catcombo]"
stDocName = "Custom Cost Report"
DoCmd.OpenReport stDocName, acPreview, strFilter