G
Guest
Hello,
I have the following query:
SO CA: IIf([All Programs Quoted crosstab].[State]="CA" And [All Programs
Quoted crosstab].[Zip_Code]<"94000" And ([All Programs Quoted
crosstab].[Broker_Name] Like "a*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "b*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "c*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "d*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "e*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "f*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "g*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "h*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "i*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "j*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "k*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "l*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "m*"),"John McHugh","Michelle Kirk")
It looks for Brokers below a certain Zip Code in California whose last names
begin with A thru M to assign to correct Broker Manager. Is there a more
efficient query statement to search the first letter of the Last Name rather
than using 13 different 'Like' statements?
Thanks.
I have the following query:
SO CA: IIf([All Programs Quoted crosstab].[State]="CA" And [All Programs
Quoted crosstab].[Zip_Code]<"94000" And ([All Programs Quoted
crosstab].[Broker_Name] Like "a*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "b*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "c*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "d*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "e*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "f*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "g*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "h*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "i*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "j*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "k*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "l*" Or [All Programs Quoted
crosstab].[Broker_Name] Like "m*"),"John McHugh","Michelle Kirk")
It looks for Brokers below a certain Zip Code in California whose last names
begin with A thru M to assign to correct Broker Manager. Is there a more
efficient query statement to search the first letter of the Last Name rather
than using 13 different 'Like' statements?
Thanks.