[mso] Re: Access 2002: Alpha/Numeric Greater Than Problem

Great idea, thanks, Ray,  Working with that idea, I added a column:
OrderRight: CStr(Format(Right([OrderNo],4),"0000"))
to get the last 4 digits.  Then the greater than worked to find the
numbers!
Thanks, Cathy


                                                                                
                                
                      "Ray Blake"                                               
                                
                      <ray@xxxxxxxxx>          To: <mso@xxxxxxxxxxxxx>          
                                
                      Sent by:                                                  
                                
                      mso-bounce@freelist      cc:                              
                                
                      s.org                                                     
                                
                      09/28/2004 10:15 AM      Subject:  [mso] Re: Access 2002: 
Alpha/Numeric Greater Than      
                      Please respond to           Problem                       
                                
                      mso                                                       
                                
                                                                                
                          ..... 
                                                                                
                                




How about:

1. Chop off the four rightmost characters and store as a new string
2. Convert the string to a number
3. Then test using >

Would that be easier?

Ray

------------------------------------
GR Business Process Solutions
Ray Blake
Head of Software Design
ray@xxxxxxxxx
Braedon
Newell Road
Hemel Hempstead
Herts HP3 9PD
tel: 01442 396518
fax: 01442 389353
www.grbps.com
------------------------------------


-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On
Behalf Of Cathy.Evans@xxxxxxxxx
Sent: 28 September 2004 14:59
To: mso@xxxxxxxxxxxxx
Subject: [mso] Access 2002: Alpha/Numeric Greater Than Problem


Jim helped me awhile back and I've been using his expression since: Like
"??????5???"  It returns the result of our alpha/numeric order numbers
of only those with a '5' in the 7th position.

However, I did not know at the time the numbers would go higher than 5,
I was thinking 5999 would be highest.  But like the Y2K problem, it
could keep going till 9999.  Therefore, is it possible to use same idea
of the exact position but cover any number from ??????5000 thru
??????9999

Since it's alpha, the greater than doesn't work.  I can say Like
"??????5???" or Like "??????6???" or Like "??????7???" or Like
"??????8???" or Like "??????9???", and that is working in my test.  But
is there a more efficient way to achieve same?  Thank you again, 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).
http://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: