[mso] Re: Access 2002: Convert Number To String (Quarterly) :VSMail mx4

  • From: James LaBorde <jlaborde@xxxxxxxxx>
  • To: "'mso@xxxxxxxxxxxxx'" <mso@xxxxxxxxxxxxx>
  • Date: Tue, 13 Jul 2004 14:42:30 -0700

Cathy,

How are you grouping these?  If you are asking for unique values, the whole
thing has to be unique, not a single field.  What data are you trying to
get?  An Aggregate query may be what you need.  Can you tell us what kind of
data you are filtering and what exactly you are trying to get out of it?

James

-----Original Message-----
From: Cathy.Evans@xxxxxxxxx [mailto:Cathy.Evans@xxxxxxxxx]
Sent: Tuesday, July 13, 2004 12:22 PM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: Access 2002: Convert Number To String (Quarterly)
:VSMail mx4



Thanks Jim.  I'm  saving this, as I have not been able to write a correct
nested IIf statement yet, just don't seem to get it!  Am going to use the
Switch function James sent for this one, however now a new problem has come
up.  This converted format was for a report header, it is a sub report with
the underlying query showing which quarter, and the year.  The underlying
query is returning multiple instances of the quarter/year though I've
grouped the fields and set unique values to yes.

I'm thinking it is grouping based on the actual date, not the converted
quarter result so I get 80 rows of second quarter 2004.  I have the date
field filtered by "Between [Forms]![frm_CPM_QTR_Parameter]![StartDate] And
[Forms]![frm_CPM_QTR_Parameter]![EndDate]", which is a date range inserted
in a form that opens the whole set of reports.  This header was supposed to
be the final aspect so I didn't have to rename each report to show what
quarter was being reported.  But this new problem is making me balder . . .
:(

Am I complicating things too much trying to find the solution?  My original
report header used to have 2 unbound text boxes with these respective
control sources "=Forms!frm_CPM_QTR_Parameter!StartDate" and
"=Forms!frm_CPM_QTR_Parameter!EndDate".   It showed the actual start/end
dates the user entered in the first form.  But instead of full dates, I'm
needing it to show quarter/year.

 Instead of trying to get the query to return a single result based on
quarter/year and place that result in the header, could I apply the same
formatting idea to these unbound boxes so the first box would show the
quarter and the last box the year?

Thank you, Cathy




 

                      "Jim Pettit"

                      <j_e_pettit@hotmail      To: <mso@xxxxxxxxxxxxx>

                      .com>

                      Sent by:                 cc:

                      mso-bounce@freelist

                      s.org                    Subject:  [mso] Re: Access
2002: Convert Number To String (Quarterly) 
                      07/13/2004 01:11 PM

                      Please respond to
..... 
                      mso

 

 





Cathy--

There are a number of ways to do this, but a quick implementation would =
be
to place the following column in your query:

QTR: IIf(DatePart("q",[DateIssue =
])=3D1,"One",(IIf(DatePart("q",[DateIssue
])=3D2,"Two",IIf(DatePart("q",[DateIssue
])=3D3,"Three",IIf(DatePart("q",[DateIssue ])=3D4,"Four")))))

But of course...

--Jim

-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On =
Behalf
Of Cathy.Evans@xxxxxxxxx
Sent: Tuesday, July 13, 2004 9:43 AM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Access 2002: Convert Number To String (Quarterly)



Can't get past partial progress.  Converting a date to show it as the
current quarter, my query design field is QTR: DateIssue, with 'q' in
property format.  Depending on date in DateIssue field, it will return a =
1,
2, 3 or 4.  I want to turn that numeric quarter result into a string so =
it
will show as One, Two, Three . . . . , but having trouble and have not =
been
finding solution in the help menu.  Any ideas how to begin?  Thank you.







----------------------------------------------------------------------------
-------------------------
The information transmitted is intended only for the person
or entity to which it is addressed and may contain confidential
and/or privileged material. If you are not the intended recipient 
of this message you are hereby notified that any use, review,
retransmission, dissemination, distribution, reproduction or any
action taken in reliance upon this message is prohibited. If you 
received this in error, please contact the sender and delete the 
material from any computer.  Any views expressed in this message
are those of the individual sender and may not necessarily reflect 
the views of the company.  
----------------------------------------------------------------------------
---------------------------

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes)
in the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also
allow you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation
with instructions.  Once you are a member of the files group, you can go
here to upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts:

  • » [mso] Re: Access 2002: Convert Number To String (Quarterly) :VSMail mx4