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 8050107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:58:29+00:00 2026-06-05T06:58:29+00:00

I have to create a report that will compare values from different years. The

  • 0

I have to create a report that will compare values from different years. The record source for the report is set on a query that will return the value for each company for the latest selected year that the user selects on a form. For the other years, I created different queries to run and I am try to assign the values to the other columns.

First of all, why can’t I use the RunSQL command on a SELECT query? I had to change it to this but I don’t think it is what I need.

DoCmd.OpenQuery "AuditPTEChangesQuery1"
DoCmd.OpenQuery "AuditPTEChangesQuery2"
DoCmd.OpenQuery "AuditPTEChangesQuery3"
DoCmd.OpenQuery "AuditPTEChangesQuery4"

Second, It will not let me assign the query values to my report columns (I get a 80020009 error)

Any suggestions on how to solve my problem would be greatly appriciated.

Thank you in advance.

  • 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-06-05T06:58:31+00:00Added an answer on June 5, 2026 at 6:58 am

    RunSQL is for action queries. A select query has nothing to run. If you wish to display data in a report from tables or queries other than the bound recordset, you can use a recordset and VBA, a subreport, a domain aggregate function or you can refer to an open form.

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

Sidebar

Related Questions

I am trying to create a report in SSRS2000 that will query an ORACLE
Background: I have to create a report that will be run regularly to send
I have to create new Report from existing report in SQL Server Reporting service,
I have a stock table and I would like to create a report that
I have a mock up of a sql query that will represent a real
I have a Crystal 2008 report that will be deployed to an InfoView server.
i have a report that i would like to send via excel. it will
how can I create report that will iterate over arraylist in detail section that
I have report that I must convert to PDF using xsl-fo from xml data
I'm creating a dataset that will be displayed in an SSRS report. 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.