D
David Bolten
I have a form with 3 filter criteria activated by vba. Each filter criterion
is a combo box based on a SQL SELECT from a table. The bound column is the
key field ID number (column 1 with column width set to 0), but column 2 is
seen on screen in the form since it is a meaningful text and it has a width
of 1.0 inches.
I can display the key field in the report to show the filter criteria (it
shows up as the ID number), but I cannot figure out how to display the
"meaningful" text in the report.
The form filter criteria looks like this:
SELECT tblItemType.IDItemType, tblItemType.txtTypeName FROM tblItemType
WHERE (((tblItemType.[Active?])=Yes)) ORDER BY [txtTypeName];
The report control source for the criterion is:
=[Forms]![CREATE SHOPPING LIST]![cboItem]
Of course, the item shown is the IDItemType that is the key field. I want
the txtTypeName to be displayed.
Any thoughts?
Thanks.
is a combo box based on a SQL SELECT from a table. The bound column is the
key field ID number (column 1 with column width set to 0), but column 2 is
seen on screen in the form since it is a meaningful text and it has a width
of 1.0 inches.
I can display the key field in the report to show the filter criteria (it
shows up as the ID number), but I cannot figure out how to display the
"meaningful" text in the report.
The form filter criteria looks like this:
SELECT tblItemType.IDItemType, tblItemType.txtTypeName FROM tblItemType
WHERE (((tblItemType.[Active?])=Yes)) ORDER BY [txtTypeName];
The report control source for the criterion is:
=[Forms]![CREATE SHOPPING LIST]![cboItem]
Of course, the item shown is the IDItemType that is the key field. I want
the txtTypeName to be displayed.
Any thoughts?
Thanks.