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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:06:13+00:00 2026-06-11T22:06:13+00:00

I have to build a custom report that takes the orderlines for each order

  • 0

I have to build a custom report that takes the orderlines for each order with the client’s name,address and username on the report.

When I make a simple query like:

SELECT FilteredSalesOrder.*, FilteredAccount.* 
FROM FilteredSalesOrder INNER JOIN FilteredAccount 
ON FilteredSalesOrder.customerid = FilteredAccount.accountid

I retrieve data but only for a single line. When there are more, the preview shows nothing.
which is not that big of a problem because I only need it for 1 order at a time.

So for my OrderReport I need all the OrderLines for each order. The report is printed out per Order not for multiple orders at the same time.
It will look something like this:
enter image description here

I just joined 5 tables from which I need data in my Order Report.

SELECT FilteredSalesOrder.*, FilteredAccount.*, FilteredSalesOrderDetail.*, FilteredSystemUser.*, FilteredProduct.*
FROM ((((FilteredSalesOrder INNER JOIN FilteredAccount 
ON FilteredSalesOrder.customerid = FilteredAccount.accountid) INNER JOIN FilteredSalesOrderDetail 
ON FilteredSalesOrderDetail.salesorderid = FilteredSalesOrder.salesorderid) INNER JOIN FilteredProduct
ON FilteredProduct.productid = FilteredSalesOrderDetail.productid) INNER JOIN FilteredSystemUser
ON FilteredSystemUser.systemuserid = FilteredSalesOrder.ownerid)

So to summarize:

  • Is my SQL query correct?
  • When I upload a simple report it gives me the error rsInvalidDataSourceReference. I know what this issue means but what do I need to do to solve it.
  • How do I make sure that in the report, the orderline table keeps on growing as needed to include all the orderlines?
  • 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-11T22:06:14+00:00Added an answer on June 11, 2026 at 10:06 pm
    • Is my SQL query correct?

    It returned an error because the query returned more than 665 Columns and apparently SQL can’t handle that.

    • When I upload a simple report it gives me the error
      rsInvalidDataSourceReference. I know what this issue means, but
      what do I need to do to solve it.

    This was solved by adjusting the connection string when you open the report in notepad++ you can alter it to match your production environment.

    • How do I make sure that in the report, the orderline table keeps on
      growing as needed to include all the orderlines?

    That is something that the report handles itself when you make the report using the report wizard of Visual Studio 2008 on the SQL Server. If you drag and drop fields from your dataset. The report will only take the first record it finds.

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

Sidebar

Related Questions

I have to build a site that receives some custom report from my users
I have a custom script step in my build process that zips the executable.
I have a custom class that I use to build table strings. I would
I have a custom build print dialog that is used for many reports. Its
I have a custom build target in a visual studio 2008 c# project. Is
I have a custom build of a Unix OS. My task: Adding an IPSec
For reference, I'm using Visual Studio 2010. I have a custom build step defined
I have to build a more complex custom view in Android. The final layout
We are using TFS build and we have a couple of custom steps within
I'm using nant to build our product and have written a custom task to

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.