Skip to main content


Dear All, this time what I am going to share with you is passing summarized variables from sub-reports to main-reports in crystal reports. Here, we have different ways to pass summarized fields from sub-report to main-report and vice-versa but what I am going to share with you is quite simple and easy as well.

Below I am describing the steps through which you can perform this task.
  1. Just create a new Crystal report and call it “mainpage.rpt”.
  2. Now add formula field and name it what you like. I am giving it name “mainTotal”
  3. Edit “mainTotal” formula field and write in it shared numbervar x; [note:  you can take any type like Boolean , etc.]
  4. Now, add a sub-report in main report and also create a formula fields.[Repeat step 2 and 3]
  5. Now switch to main report again.
  6. Right click on sub-report. You will see in menu option “Change Subreport Links. Click on it.
  7. Bring that “mainTotal” field in “fields to link”  and uncheck checkbox having “Select data in subrport based on field”.
  8. Press OK Button.

Hey All………. Congrates. You have created your first report that is able to share values between main report and sub-report.

Kindly see below image where to keep sub-report and summarized variable so that if you are receiving value of previous section not current section then you can make necessary changes and get the correct one report.

If above post help you then please leave a comment.


Popular posts from this blog

The sign-in method you're trying to use isn't allowed. For more info, contact your network administrator

Above problem occur when you have not added a group (of which User try to login)  in your local policy login. To resolve the issue, follow the steps,
Log in as the administrator on the server, then start the Group Policy Management Editor by running the  gpmc.msc command from PowerShell or the Command Line window. 1. In the Group Policy Management window on the left hand side, select Group Policy Management. 2. Click to expand the  Forest tree node.
3. Click Domains.
4. Select your domain name.
5. Click Group Policy Objects. 6. In the right-hand window, double-click Default Domain Controllers Policy.
7. Right-click Default Domain Controllers Policy and Select Edit.
8. In the Group Policy Management Editor window, click Default Domain Controllers Policy.
9. Click Computer Configuration, and then click Policies.
10. Click Windows Settings, and then click Security Settings. 11. Click Local Policies and then click User Rights Assignments.
12. In the right pane, click Allow log on locally. 12. Cli…

ORA-38104: Columns referenced in the ON Clause cannot be updated

In my case, this error pertains to Oracle Merge query. After 30 minutes of time wastage and a lot of hunting on different forums, I come to know that where and why was my merge query throwing exception.

I was giving multiple criteria in ON clause of merge query, and was also trying to update a column which I have mentioned in ON clause. Once I remove that column from update clause of merge query, it executed successfully.

I hope that this will also works for you.

In case if this post help you, then please comment on it.


Cannot use the special principal 'sa'. (Microsoft SQL Server, Error: 15405)

Yesterday, I start SQL Server 2005 and try to connect with sa user but was enable to connect with the 'sa' user and got this error:

Cannot use the special principal 'sa' (Microsoft SQL Server, Error: 15405)After doing some google, I found out the solution which I am sharing so that others can get all the possible solutions from this article.
The titled message mean that your sa user is disabled. To enable it, you have to follow below mentioned steps:1) you have to change the authentication mode: go to Management Studio and open Object Explorer. Connect to your server and right-click on the server name, then select Properties. Go to Security tab and under Server Authentication select "SQL Server and Windows Authentication Mode".2) Also, after you follow the directions above, you will also need to explicitly enable the sa account as well. Go to Security->Logins. Right-click on the "sa" account, select "Properties". In the list on the lef…