T
tina
hi folks,
i'm using Access97 running in Win2K Pro O/S. i have a query based on a
table, with a calculated field made up of the concatenated first, middle,
and last name fields in the table, and aliased as EName. the query has
criteria set on the employee table's primary key, and returns records for
only a single employee. the name shows up as expected when i run the query.
i used this query as the base for a crosstab query, including EName as a
RowHeading field. again, the name shows up as expected when i run the
crosstab query.
then i based a report on the crosstab query. in the PageHeader section, i
added a textbox bound to EName, and the name shows up as expected in Report
Preview. then i changed the textbox ControlSource to
= "for " & [EName]
also changing the control's name, of course, and in Report Preview the
control displays
for 1
(1 is not the primary key value of the employee record, by the way - in my
test, the primary key value is 72.)
i've tried changing the textbox to a label control, and setting its' Caption
property in the Open event, and then in the PageHeader section's OnPrint
event - the label comes up blank in Report Preview.
i've also tried grouping on the EName field, and putting the bound textbox
in that GroupHeader section. as a bound control, the textbox displays the
value of EName, as expected; but again, when i change it to a calculated
control (renamed) with the ControlSource set as noted above, i get the same
display as noted above. in both calculated control tests, i also tried
adding a separate textbox control, bound to the EName field, to the same
section containing the calculated control. in both instances, the bound
control displays the EName value as expected, while the calculated control
in that same section displays
for 1
i am at a loss as to why this is happening, and how to fix or get around it.
any suggestions will be appreciated.
tia, tina
i'm using Access97 running in Win2K Pro O/S. i have a query based on a
table, with a calculated field made up of the concatenated first, middle,
and last name fields in the table, and aliased as EName. the query has
criteria set on the employee table's primary key, and returns records for
only a single employee. the name shows up as expected when i run the query.
i used this query as the base for a crosstab query, including EName as a
RowHeading field. again, the name shows up as expected when i run the
crosstab query.
then i based a report on the crosstab query. in the PageHeader section, i
added a textbox bound to EName, and the name shows up as expected in Report
Preview. then i changed the textbox ControlSource to
= "for " & [EName]
also changing the control's name, of course, and in Report Preview the
control displays
for 1
(1 is not the primary key value of the employee record, by the way - in my
test, the primary key value is 72.)
i've tried changing the textbox to a label control, and setting its' Caption
property in the Open event, and then in the PageHeader section's OnPrint
event - the label comes up blank in Report Preview.
i've also tried grouping on the EName field, and putting the bound textbox
in that GroupHeader section. as a bound control, the textbox displays the
value of EName, as expected; but again, when i change it to a calculated
control (renamed) with the ControlSource set as noted above, i get the same
display as noted above. in both calculated control tests, i also tried
adding a separate textbox control, bound to the EName field, to the same
section containing the calculated control. in both instances, the bound
control displays the EName value as expected, while the calculated control
in that same section displays
for 1
i am at a loss as to why this is happening, and how to fix or get around it.
any suggestions will be appreciated.
tia, tina