Topic Options
#45228 - 04/05/15 06:16 PM Gridview Filter
SusanTennier Offline
Adagio Maestro

Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
I have a Gridview using the table G/L Posted Transactions with this line:

{Fiscal Year} = "2015-",

How can I make that a query so that it will ask you to enter the fiscal year of your choice?
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario

Top
#45231 - 04/05/15 06:23 PM Re: Gridview Filter [Re: SusanTennier]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
Hi Susan,

Use:
Code:
{Fiscal Year}=CONCATENATE(STRING(QUERYNUMBER("Which year?",2015),0),"-")

You can replace the "2015" in the formula with whatever default year is most appropriate for your default value.
_________________________
Andrew Bates

Top
#45233 - 04/05/15 06:27 PM Re: Gridview Filter [Re: Retired_Guy]
SusanTennier Offline
Adagio Maestro

Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
Wow.. that actually works. Thanks. :-)
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario

Top
#45236 - 04/06/15 06:50 AM Re: Gridview Filter [Re: SusanTennier]
Bruce Gardner Offline
Adagio Wizard

Registered: 06/15/04
Posts: 3612
Loc: Toronto ON, Canada
Another approach can be used in situations where there is a limited number of possible choices. If you were selecting specific starting and ending dates (ie. February 1, 2014 to December 31, 2014), there are thousands of possible combinations. But when selecting fiscal years, there is a limited number of possibilities: 2014, 2015, 2016 etc.

In that situation, you could simply create a filter for each year, specify the year directly in the filter and name it that way. You could create filters for the next 10 fiscal years in a couple of minutes.
_________________________
Bruce Gardner
ARX Business Solutions Inc.

Top
#45237 - 04/06/15 08:20 AM Re: Gridview Filter [Re: Bruce Gardner]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
Bruce's approach is better if there are only a few specific fiscal years to check for.
_________________________
Andrew Bates

Top
#45244 - 04/07/15 05:26 AM Re: Gridview Filter [Re: Retired_Guy]
SusanTennier Offline
Adagio Maestro

Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
Thanks Bruce. Great idea. In this situation I am already using drop down filters for the different bank accounts, but that would work well in some cases.
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario

Top


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 55 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
1865 Members
5 Forums
14458 Topics
70633 Posts

Max Online: 432 @ 01/20/25 10:17 PM
April
Su M Tu W Th F Sa
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