Skip to main content

Link previous years files

Each financial year normally has its own file. When you link the files of previous years to the file of the current year, you can run the reports that span several years, such as the ledger over several years and the customer statement over several years, and you can return a sales bill from a previous year.

Before you begin​

  • Open the file of the current year.
  • You need the Link page permission in Program Options, and, for Return Options, the Allow modifying the default values in program options permission.
  • The files of the previous years must be on the same database server, and the version number of each must equal or exceed the version number of the current file. If one is older, update it first.
  • The period of each file must come before the period of the current file, and the periods of two files must not overlap.
  • When you create the file of the new year by carrying the balances forward from the old one, the program adds the old file to the new one if their periods do not overlap. Re-carrying forward a file that was already carried adds nothing. Open the page to check the links.

Steps​

  1. Open the File tab, click Program Options, then click Link.
  2. In the Previous Years Files group, click Link Files. The window "Connection Parameters of Previous Years Files" opens and shows the files linked now.
  3. Click the first empty cell in the File Name column and choose the file of the previous year from the list. The list shows the files that are not linked. You can also choose from the Database column.
  4. The program fills the rest of the row: Opening Date, Closing Date and Version No. Check that the two dates are the period of the year you want.
  5. To link an older year, repeat steps 3 and 4 in the next empty row.
  6. To make a file one that returns can come from in Return from Bill, click the Returned cell in its row and choose Yes. The original is No.
  7. Click Ok. The program saves the links in the file at once.

The Connection Parameters of Previous Years Files window with a row for a 2025 file and its period from 1/1/2025 to 31/12/2025

If the program cannot write the links, it shows no message. After Ok, open Link Files again and check that the rows are still there.

If a message appears when you choose the file, the program deleted the row. Read the message in the table below and correct the cause.

Choose the default year for returns​

  1. On the Link page, click Return Options. The button needs the Allow modifying the default values in program options permission.
  2. In Default Year, choose the file the Return from Bill window starts with. The list shows only the files you marked Returned = Yes.
  3. Click Ok. The program saves the options in the file at once, without waiting for Ok in Program Options.

The Link page with the Link Files and Return Options buttons in the Previous Years Files group

  1. Open Link Files.
  2. Right-click the row number of the file and choose Delete.
  3. Click Ok.

The program saves the table if at least one linked row remains. If you delete every row, the program does not change the links you saved before. So keep at least one row.

Result​

The reports that span years read the linked files. A user who has the permission on a previous years report can review the data of all the linked files, whatever his permissions in the current file. Linking changes no data in any file. The files you marked Returned = Yes show in the Return from Bill window for returning a bill of a previous year.

If something goes wrong​

MessageWhy it appearsWhat to do
Cannot add database that has period later to the current database periodThe period of the chosen file starts at the end of the current period or after it.Choose a file of an earlier year.
Cannot add database that has overlapping periods with the current databaseThe period of the file overlaps the current period.Choose a file whose period is wholly before the current period.
Cannot add database that has overlapping periods with database previously definedIts period overlaps a linked file. The file name follows in brackets.Remove the other file or choose another one.
This database cannot be added,you need to update the current version :The version of the file is older than the current file, and the message gives the version number.Update the old file to the current version, then link it.
Cannot define databases with overlapped periodsYou clicked Ok and two linked periods overlap.Edit the rows so that they do not overlap.
There is a file or more has different copy from the current file copyIn red at the top of the window: a row holds a file of an older version, which may have happened after the current file was updated.Update the old files before you ask for reports over several years.

If the file you want does not show in either list, check that it is on the same server, that it is online now, and that it has a recorded version number.

This page applies to alameen ERP 10, version 10.1.79.764.