M
MikeB
I'm writing a set of tables and forms and reports to manage a small
chess club at my daughter's school.
One of the things I create is a report on the previous chess match,
with the players as drawn and their match results.
I extract this from my Games table. The Games table has a foreign key
to the Matches table where I have a record recording the Match data
(title, date, time, etc.)
When I create the Game Results report, I'd like to include the title
of the match and it's date in the header. I created a text box and
inserted the following expression:
=(SELECT [Title] FROM [Matches] WHERE [Games].[MatchNumber] =
[Matches].[MatchNumber])
The query works. If I paste it into another SQL query, I get the data
I want. However, if I run the report, I get #Name? error.
What am I doing wrong? Do I have to create a query simply to include
the match title in every record in the query for the report?
Thanks.
chess club at my daughter's school.
One of the things I create is a report on the previous chess match,
with the players as drawn and their match results.
I extract this from my Games table. The Games table has a foreign key
to the Matches table where I have a record recording the Match data
(title, date, time, etc.)
When I create the Game Results report, I'd like to include the title
of the match and it's date in the header. I created a text box and
inserted the following expression:
=(SELECT [Title] FROM [Matches] WHERE [Games].[MatchNumber] =
[Matches].[MatchNumber])
The query works. If I paste it into another SQL query, I get the data
I want. However, if I run the report, I get #Name? error.
What am I doing wrong? Do I have to create a query simply to include
the match title in every record in the query for the report?
Thanks.