[mso] Re: Fixed-format fields in MS Access

  • From: Cathy.Evans@xxxxxxxxx
  • To: mso@xxxxxxxxxxxxx
  • Date: Tue, 28 Nov 2006 12:53:23 -0500

You can try something like CStr(Format([fieldname],"00")) - whatever is in
quotes - 00.00 or 00000000000 determines the formatting.   I use something
similar to return a 4 character number.  I have received extensive
formatting help from this forum, and am still learning, as there are
functions that convert to strings, numbers, dates, etc.

Here is an url that may help,

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/51b7aeaf-e58d-4f7b-b992-ca6cfd0a3fe1.asp


                                                                                
                                              
                       Pruscoe@xxxxxxx                                          
                                              
                       Sent by:                                                 
                                              
                       mso-bounce@freelists.                                    
                                           To 
                       org                           mso@xxxxxxxxxxxxx          
                                              
                       11/27/2006 09:07 PM                                      
                                           cc 
                       Please respond to mso                                    
                                              
                                                                                
                                      Subject 
                                                     [mso] Fixed-format fields 
in MS Access                                   
                                                                                
                                              
                                                                                
                                              
                                                                                
                                              
                                                                                
                                              
                                                                                
                                              
                                                                                
                                              
                                                                                
                                              




I'm trying to design both forms and reports that contain (among other
things) two types of fixed-format fields: (a) an integer of a fixed length,
padded
with leading zeros when necessary (e.g. 0000000123), and  (b) fields  with
2
decimal places, with decimals not suppressed when zero (e.g.  123.00)

It seems that I should be able to set up some sort of custom format mask,
but I'm lost how to do that.

Peter

*************************************************************
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, visit the group's homepage and use the
dropdown menu at the top.  This will allow you to unsubscribe your email
address or change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

If you are using Outlook and you see a lot of unnecessary code in your
email messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************




-----------------------------------------------------------------------------------------------------
The information transmitted is intended only for the person
or entity to which it is addressed and may contain proprietary,  
business-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, visit the group's homepage and use the dropdown 
menu at the top.  This will allow you to unsubscribe your email address or 
change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

If you are using Outlook and you see a lot of unnecessary code in your email 
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************

Other related posts: