Report Grouping

N

NNlogistics

I have a Sales report that I would like to group by a text field
(fldAuthorizationCode). It has 3 general possibilities
1 - "Unapproved"
2 - "Check#" & " 99999"
3 - Approval code, which is some mix of alphanumeric Characters

I would like to group a report into those 3 catagories and I need a kick to
get started. Query or Report, either way. I would appreciate any advice.
 
A

Allen Browne

Type an expression like this into the Field row in query design:
IIf([fldAuthorizationCode] Like "Check#*", 2,
IIf([fldAuthorizationCode] <> "Unapproved", 3, 1))

You could type type the expression (preceded with =) into the Sorting And
Grouping dialog in the report if you wish.

Presumably if the field is Null, it should be treated as unappoved, so the
expression is designed that way.
 
N

NNlogistics

So Sweet
--
Thanks for any assistance


Allen Browne said:
Type an expression like this into the Field row in query design:
IIf([fldAuthorizationCode] Like "Check#*", 2,
IIf([fldAuthorizationCode] <> "Unapproved", 3, 1))

You could type type the expression (preceded with =) into the Sorting And
Grouping dialog in the report if you wish.

Presumably if the field is Null, it should be treated as unappoved, so the
expression is designed that way.

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

NNlogistics said:
I have a Sales report that I would like to group by a text field
(fldAuthorizationCode). It has 3 general possibilities
1 - "Unapproved"
2 - "Check#" & " 99999"
3 - Approval code, which is some mix of alphanumeric Characters

I would like to group a report into those 3 catagories and I need a kick
to
get started. Query or Report, either way. I would appreciate any advice.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top