[mso] Re: Access 2002: IIf Statement Results Not What's Neede d : VSMail mx4 :VSMail mx3

  • From: James LaBorde <jlaborde@xxxxxxxxx>
  • To: "'mso@xxxxxxxxxxxxx'" <mso@xxxxxxxxxxxxx>
  • Date: Fri, 30 Jul 2004 13:46:26 -0700

Cathy,

Your best bet is probably to use the MID function and pull the data out to
compare to your criteria.  That should give you better results.

James

-----Original Message-----
From: Cathy.Evans@xxxxxxxxx [mailto:Cathy.Evans@xxxxxxxxx]
Sent: Friday, July 30, 2004 12:34 PM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: Access 2002: IIf Statement Results Not What's Needed
: VSMail mx4 :VSMail mx3



Thanks, trying it, but don't have my syntax right, not working yet.  Tried
to replace ="*0*" with Is Like *0*, but won't accept that.

If it makes a difference, I don't need the * wildcard.  Was just using it
because I was not getting any results on "00", which is the actual data I
want to convert, but those results are even worse.  Is it because the
results are mixed alpha/numeric?  Thanks, Cathy



 

                      James LaBorde

                      <jlaborde@xxxxxxxxx      To: "'mso@xxxxxxxxxxxxx'"
<mso@xxxxxxxxxxxxx>                       
                      >

                      Sent by:                 cc:

                      mso-bounce@freelist

                      s.org                    Subject:  [mso] Re: Access
2002: IIf Statement Results Not What's   
                      07/30/2004 02:38 PM         Needed  :    VSMail mx4

                      Please respond to

                      mso
..... 
 

 





Cathy, if you want to use the wildcard character, I believe you need to use
the Like operator.  If you use the * without the Like operator it is
looking
for the literal string.  Try changing your = to a Like and you should have
better luck.

James

-----Original Message-----
From: Cathy.Evans@xxxxxxxxx [mailto:Cathy.Evans@xxxxxxxxx]
Sent: Friday, July 30, 2004 11:04 AM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Access 2002: IIf Statement Results Not What's Needed
:VSMail mx4


I'm trying to convert a 2 character field based on a value.  My query picks
off positions 5 and 6 of a 10-11 character alpha/numeric string.  Sometimes
the 2 digits are 00, though I'm not sure access is reading them as zero,
since it is alpha/numeric mix and some results are 00, some are
combinations of letters.  I'm trying to convert this 2 character  result to
always use the CID field unless it contains 00, then use the SiteID field.
Here is my formula:

CID_CV: IIf(([CID])="*0*",[SiteID],[CID])

It is not changing the value to SiteID, it is staying 00.  Where am I going
wrong?  Thank you, Cathy







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