Report Showing Primary Keys instead of Names!

kellem80

Board Regular
Joined
Apr 2, 2008
Messages
95
I have a report based on a Query. The Query, when run, displays the Project Names and Task Names. When creating the report (report wizard), Access reverts all the Project and Task Names back to thier primary keys. The report is broken down as such:
Project
Task
Activity
Sum Amount

Project is diplaying primary key # in Project Header instead of the name displayed in the query
Task is displaying primary key # in the Task Header instead of the name displayed in the query
Activity in the Activity Header is the Activity Name (which is what is desired), however in the footer, this also ends up reverting to the primary key!!!
The footers contains subtotal and total information (each level has a footer total and all are displaying primary key instead of name associated).

I could not find any help in properties for these fields in the design side, the properties look properly linked.

thanks in advance!
k
 

HiTechCoach

Well-known Member
Joined
Aug 29, 2010
Messages
1,008
Sounds like the evils of Look up field properties in your tables are getting you. See:The Evils of Lookup Fields in Tables

You will need to add the lookup tables to your query. Then add the description fields to your query that you want o use on your report.
 

kellem80

Board Regular
Joined
Apr 2, 2008
Messages
95
Thanks, this helped and worked just fine.
I read the "evils" but what would be an alternative to using the lookup fields that would provide the users the same effect? (Pull-down menus, inability to enter typed characters, etc.) The option would also need to be easy enough to be maintained by Access novices.
Figured I'd ask :)
 

HiTechCoach

Well-known Member
Joined
Aug 29, 2010
Messages
1,008
The "evil" look up fields only work in tables and queries. Data entry should never be done directly into tables and queries. You should always use a form fopr dat aentry.

Foirms are very powerful. YIu can use a combo box to look up the value from a look up table just like the look up field in a table. Before the feature was added to Access we only way to handle it was on a form. Every Access Guru/Expert/MVP I know all agree that users should never see tables. That means they will never do data entry directly into a table or query. With a well design relational database it is very difficult to do. That may be why Microsoft thought adding the look up to the tables was a good idea. I see it as only encouraging poor Access application development.
 

Forum statistics

Threads
1,082,333
Messages
5,364,675
Members
400,810
Latest member
elbashka

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top