Re: Help with Crosstab Report
- From: "Al Newbie" <nospamthanks@xxxxxxxxxxx>
- Date: Tue, 12 Apr 2005 10:23:07 +0100
Found the problem
"Al Newbie" <nospamthanks@xxxxxxxxxxx> wrote in message
news:edFeM1zPFHA.1884@xxxxxxxxxxxxxxxxxxxxxxx
> The table that this query is run on gets populated using ADO - I have
> noticed that the Customer field is being padded with a space at the
> beginning of the field
>
> I have tried using LTrim(rsSales.fields("Customer") as part of the insert
> statement but this doesn't make any difference
>
> How can I get rid of these spaces?
>
>
> "Al Newbie" <nospamthanks@xxxxxxxxxxx> wrote in message
> news:%23Wc54lzPFHA.3292@xxxxxxxxxxxxxxxxxxxxxxx
>> Access 2003 - 2000 format mdb
>> I have the following
>>
>> TRANSFORM Sum(tblSalesYTD.TotalSales) AS SumOfTotalSales
>> SELECT tblSalesYTD.Customer, tblSalesYTD.CustName, tblSalesYTD.Area,
>> tblSalesYTD.ADesc, tblSalesYTD.Salesperson, tblSalesYTD.Branch,
>> Sum(tblSalesYTD.TotalSales) AS TotSales
>> FROM tblSalesYTD
>> WHERE (((tblSalesYTD.Customer)="ACNO"))
>> GROUP BY tblSalesYTD.Customer, tblSalesYTD.CustName, tblSalesYTD.Area,
>> tblSalesYTD.ADesc, tblSalesYTD.Salesperson, tblSalesYTD.Branch
>> PIVOT tblSalesYTD.TrnMonth In
>> ("1","2","3","4","5","6","7","8","9","10","11","12");
>>
>> If I remove the WHERE clause then the query returns the expected results
>> but if I try to limit it to a particualr customer no results get returned
>>
>> What am I doing wrong?
>>
>>
>
>
.
- Follow-Ups:
- Re: Help with Crosstab Report
- From: LoriFromBuffalo
- Re: Help with Crosstab Report
- References:
- Help with Crosstab Report
- From: Al Newbie
- Re: Help with Crosstab Report
- From: Al Newbie
- Help with Crosstab Report
- Prev by Date: Re: Running Sum
- Next by Date: Creating a Total in a Report
- Previous by thread: Re: Help with Crosstab Report
- Next by thread: Re: Help with Crosstab Report
- Index(es):
Relevant Pages
|