Previous Thread
Next Thread
Print Thread
#29053 09/26/11 11:30 AM
Joined: Sep 2010
Posts: 14
C
Casual
Casual
C Offline
Joined: Sep 2010
Posts: 14
Adagio Fx (9.0) statements were working until new year was created in the ledgers that were being retrieved into Fx. The problem seems to be in any statements that contain the "QUERYSHEET" function in them. Statement tabs without the "QUERYSHEET" formulas work fine, but all statements with the "QUERYSHEET" formual default to "error" when selecting the correct period.

Does anyone have the same experience, or have any ideas as to the cause of this problem. This was given to our re-seller, but they have not been able to determine the problem.

Joined: Mar 1999
Posts: 10,504
Adagio Master
Adagio Master
Joined: Mar 1999
Posts: 10,504
=QUERYSHEET() takes several additional arguments to let the financial reporter know what period you want the target sheet calculated for. From the Financial reporter Help:
Quote:

QUERYSHEET(S, C [, F [, D [, Y])
Description
Returns the contents of the cell reference C from the sheet S calculated for the Fiscal Period F using Department D in Fiscal Year Y. If the optional parameters, fiscal period, department and fiscal year, are not passed then the current contents of the cell are returned. You cannot use this function to reference a cell on the same sheet. If a Named Range is used then the value from the top left cell in the Named Range is returned.

Parameters
S Sheet name
C Cell reference or Name Range
F Optional fiscal period
D Optional Department (if used then the Fiscal Period must also be used)
Y Optional Year (if used then the Fiscal Period and Department must also be used; values are 0 for current year, 1 for prior year, 2 for two years ago, etc.)

Example
Sheet 2 Cell A10 contains 99

If a cell in Sheet 1 has =QuerySheet(“Sheet 2”,”A10”) then 99 will be returned.

Sheet 2 Cell A10 has =ADGET(“GLDATA.Bal”,"1000") = 347.67

If a cell in Sheet 1 has =QuerySheet(“Sheet 2”,”A10”) then the numeric value 347.67 will be returned.
If a cell in Sheet 1 has =QuerySheet(“Sheet 2”,”A10”,3,”100”) then Sheet 2 will be recalculated for Fiscal Period 3 and Department 100 and the resulting value will be returned.
If a cell in Sheet 1 has =QuerySheet(“Sheet 2”,”A10”,3,”100”,1) then Sheet 2 will be recalculated for Fiscal Period 3, Department 100 and the prior fiscal year, and the resulting value will be returned.

Perhaps you could paste the QUERYSHEET() formula that is returning the error.


Andrew Bates

Moderated by  Softrak Support 

Link Copied to Clipboard
Who's Online Now
0 members (), 70 guests, and 2 robots.
Key: Admin, Global Mod, Mod
Forum Statistics
Forums5
Topics14,679
Posts71,625
Members1,874
Most Online1,408
Dec 9th, 2025
November
S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Powered by UBB.threads™ PHP Forum Software 8.0.0