L
LeslieJ via AccessMonster.com
Hello all,
I have a parameter form called frmDocbyDept that filters for the report
Documents by Department. On frmDocbyDept there is a combo box called cboDept,
an invisible text box called txtDept (after the combo box is updated, it
sends the dept id to txtDept which is what the query searches for), and an ok
and cancel button. cboDept consists of fields from the table Department
Holders, and the first column is hidden that shows the identifier, and the
second column shows the department name. When the ok button is clicked the
report is opened up and shows only the documents for the department that was
selected.
There is one department, Logistics, that is actually made up of 4 other
departments now. And documents will now be associated with all five
identifiers. What I would like to be able to do is this:
When Logistics is selected in the combo box, I would like for the text box to
say to search for the five department id's in the query. However, when I
make the text box say 58 or 30 or 33 or 35 or 36 (the five department id's),
the query does not correctly interpret the information and gives me a blank
report.
Every other department is straight forward, and works as expected.
I would appreciate it if anyone has any ideas on how to make the text box
correctly transfer the information over to the query. Thank you in advance.
I have a parameter form called frmDocbyDept that filters for the report
Documents by Department. On frmDocbyDept there is a combo box called cboDept,
an invisible text box called txtDept (after the combo box is updated, it
sends the dept id to txtDept which is what the query searches for), and an ok
and cancel button. cboDept consists of fields from the table Department
Holders, and the first column is hidden that shows the identifier, and the
second column shows the department name. When the ok button is clicked the
report is opened up and shows only the documents for the department that was
selected.
There is one department, Logistics, that is actually made up of 4 other
departments now. And documents will now be associated with all five
identifiers. What I would like to be able to do is this:
When Logistics is selected in the combo box, I would like for the text box to
say to search for the five department id's in the query. However, when I
make the text box say 58 or 30 or 33 or 35 or 36 (the five department id's),
the query does not correctly interpret the information and gives me a blank
report.
Every other department is straight forward, and works as expected.
I would appreciate it if anyone has any ideas on how to make the text box
correctly transfer the information over to the query. Thank you in advance.