Topic Options
#47755 - 11/02/15 08:35 AM Gridview Formula
SusanTennier Offline
Adagio Maestro

Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
I forget how to do this. I want a filter to show me only customers with the letters BE in the customer code. Our customer numbers consist of 2 letters and 4 numbers. So {Cust #} contains "BE????"). Can anyone help?
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario

Top
#47756 - 11/02/15 09:02 AM Re: Gridview Formula [Re: SusanTennier]
Bruce Gardner Offline
Adagio Wizard

Registered: 06/15/04
Posts: 3620
Loc: Toronto ON, Canada
Hi Susan:

LEFT(TRIM({Cust #}), 2) = "BE"

Or if you want to select the letters each time: LEFT(TRIM({Cust #}), 2) = QUERYSTRING("Enter first 2 characters","BE" )

The TRIM isn't really necessary in your case but it's good practice to include it. Remember to type in upper-case because I didn't include any logic to handle different cases.
_________________________
Bruce Gardner
ARX Business Solutions Inc.

Top
#47758 - 11/02/15 10:02 AM Re: Gridview Formula [Re: Bruce Gardner]
SusanTennier Offline
Adagio Maestro

Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
Thanks Bruce! :-)
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario

Top


Moderator:  Christa_Meissner 
Who's Online
1 registered (Hugh), 205 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
1865 Members
5 Forums
14492 Topics
70766 Posts

Max Online: 432 @ 01/20/25 10:17 PM
May
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 31