Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3975948
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:44:47+00:00 2026-05-20T04:44:47+00:00

I have a saved query in MS Access 2007 named test. SELECT Count(system_info.id) AS

  • 0

I have a saved query in MS Access 2007 named “test”.

SELECT Count(system_info.id) AS CountOfUnique
FROM system_info;

So when I run this, it retuns 172 as expected. That confirms the query runs OK.
The table “system_info” is a linked table to an excel spreadsheet. When I run any queries against that table, they ALL work in query view (datasheet).

However, when I try to reference that query result inside of a report, it doesn’t work!
Here’s what I do

  1. Create new blank report
  2. Create a textbox
  3. click the “…” button to launch expression builder
  4. Using the expression builder, select the query and insert the result =[test]![CountOfUnique]

When I then run the report, the textbox has #Name? inside it.
I’ve googled to death this issue and some suggest it could be a bug with MS Access 2007 when the query returns zero records. However, I know it returns one! Others have suggested changing the name of the textbox as it may clash with something else. Even when that textbox is on it’s own in a brand new report it still doesn’t work.

I’m tearing my hair out!! I can use the same method on other tables and I see the numbers, but it seems to be just this system_info table that doesnt work in the report. Is there a setting somewhere I’ve missed??

Thanks for any info

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T04:44:47+00:00Added an answer on May 20, 2026 at 4:44 am

    In the text box type:

    =DlookUp("CountOfUnique","Test")
    

    Also check out DCount.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MS Access 2007 report which is based on a query that
I have a query saved in the queries section. I am running the query
I have following query and data saved in a MySQL database with a timestamp
I have a query in access and I need it to also have an
i have created multiple sequential sql query objects for an ms access database. e.g
First of all, the website I run is hosted and I don't have access
I'm using PuTTY to run: mysql> SELECT * FROM sometable; sometable has many fields
I have access to some images that can be gathered like this: http://www.example.com/imageGetter.php?a=0001 If
I have an access database that is saved in a network location so that
I'm using Access 2007 connecting to a MS SQL db through ODBC. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.