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

  • From: Cathy.Evans@xxxxxxxxx
  • To: mso@xxxxxxxxxxxxx
  • Date: Tue, 13 Jul 2004 14:04:10 -0400

Thank you so much James!  That worked perfectly!  I have spent hours in the
help menu and searching the web trying to find the right function and
syntax, nothing was working right.  I definitely didn't have Datepart in
the statement, nor the correct IIf statement, just couldn't get the syntax
right.  I'm glad to know about the Switch function, it looks very useful.
Appreciate your help, thanks, Cathy :)


                                                                                
                                     
                      James LaBorde                                             
                                     
                      <jlaborde@xxxxxxxxx      To: "'mso@xxxxxxxxxxxxx'" 
<mso@xxxxxxxxxxxxx>                         
                      >                                                         
                                     
                      Sent by:                 cc:                              
                                     
                      mso-bounce@freelist                                       
                                     
                      s.org                    Subject:  [mso] Re: Access 2002: 
Convert Number To String (Quarterly) 
                      07/13/2004 01:40 PM         :VSM   ail mx5                
                                     
                      Please respond to                                         
                                     
                      mso                                                       
                               ..... 
                                                                                
                                     
                                                                                
                                     




Cathy,

You can always add an IIF or even use Switch.

To use switch you would do something like this:

Quarter: Switch(Datepart('q', [DateIssue]) = 1, "One", Datepart('q',
[DateIssue]) = 2, "Two", Datepart('q', [DateIssue]) = 3, "Three",
Datepart('q', [DateIssue]) = 4, "Four")

This should give you the string equivalent that you are looking for.

If you need more help, just holler.

Thank You,
James La Borde
South Western Federal Credit Union

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



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
*************************************************************

Other related posts: