Hi All,
I have an XL link to a table in Access. The table has a field called CLAIMREF that I need to count. I need to split the count depending on the length and also have a total volume aswell. So, I need a query that returns 3 fields...1 showing total records where the lenght of CLAIMREF is 7 or less, 1 which shows total records where the length of CLAIMREF is more than 7, and 1 which shows total.
First I tried the below expressions:
Sum(IIf(Len([CLAIMREFNUMBER])<=7,1,0))
Sum(IIf(Len([CLAIMREFNUMBER])>7,1,0))
CLAIMREF (a simple count)
The numbers didn't add up - I realised the CLAIMREF column contains numbers and text in XL. So I tried this:
Sum(IIf(Len(Format([CLAIMREFNUMBER],"Text"))<=7,1,0))
Sum(IIf(Len(Format([CLAIMREFNUMBER],"Text"))>7,1,0))
CLAIMREF (a simple count)
I still can't get my expressions to count all records and therefore the totals do not add up.
You may have gathered I am fairly inexperienced with Access so any advise on how I could achieve this would be very much appreciated!
Thanks