M
Mike Webb
Using Access 2K2; experience level: Novice.
Using sample DB RptSmp97.mdb, based on Microsoft KB article Q145591, How to
Filter a Report Using a Form's Filter
Copied then converted the DB to Access 2K2 format before I started.
----------------------------------------------------------------------------
----------
Problem: I am getting "#Name?" on the report where the filtered data should
be.
Background: I have 3 tables; tblArticles (Article_ID is the PK),
tblKeywords (Keyword_ID is the PK), and tblJoin (Table_ID is the PK and has
the other PK's as FK's). First 2 tables joined to tblJoin with One-To-Many
relationships.
Created a form using combo boxes looking at the first 2 tables for data.
The user can select any of 4 choices from the 4 combo boxes, press a command
button ("Apply Filter") and SHOULD get a report pop up that has the filtered
results. What I get is the column headers and "#Name?" on a single row for
the results.
The Record Source for the report is blank. When I created the text boxes
the Control Source listed the 3 tables. So I clicked on the "..." and used
Expression Builder to do the following (as an example):
=tblArticles!ArticleDate .
Since this doesn't work, I'm sure I need to re-work my behind-the-scenes
part of the report.
I think I need to define the Form Record Source with a SQL statement and
also do SQL statements for the text box Control Sources, because I am basing
this off of multiple tables vice the single table in the sample DB.
I request your advice and comments on how I should proceed.
TIA,
Mike Webb
Platte River Whooping Crane Maintenance Trust, Inc.
a non-profit 501(c)(3) organization
Using sample DB RptSmp97.mdb, based on Microsoft KB article Q145591, How to
Filter a Report Using a Form's Filter
Copied then converted the DB to Access 2K2 format before I started.
----------------------------------------------------------------------------
----------
Problem: I am getting "#Name?" on the report where the filtered data should
be.
Background: I have 3 tables; tblArticles (Article_ID is the PK),
tblKeywords (Keyword_ID is the PK), and tblJoin (Table_ID is the PK and has
the other PK's as FK's). First 2 tables joined to tblJoin with One-To-Many
relationships.
Created a form using combo boxes looking at the first 2 tables for data.
The user can select any of 4 choices from the 4 combo boxes, press a command
button ("Apply Filter") and SHOULD get a report pop up that has the filtered
results. What I get is the column headers and "#Name?" on a single row for
the results.
The Record Source for the report is blank. When I created the text boxes
the Control Source listed the 3 tables. So I clicked on the "..." and used
Expression Builder to do the following (as an example):
=tblArticles!ArticleDate .
Since this doesn't work, I'm sure I need to re-work my behind-the-scenes
part of the report.
I think I need to define the Form Record Source with a SQL statement and
also do SQL statements for the text box Control Sources, because I am basing
this off of multiple tables vice the single table in the sample DB.
I request your advice and comments on how I should proceed.
TIA,
Mike Webb
Platte River Whooping Crane Maintenance Trust, Inc.
a non-profit 501(c)(3) organization