A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Need to have a field always have 13 characters & insert leading ze



 
 
Thread Tools Display Modes
  #11  
Old September 22nd, 2009, 03:38 PM posted to microsoft.public.access.tablesdbdesign
BruceM via AccessMonster.com
external usenet poster
 
Posts: 448
Default Need to have a field always have 13 characters & insert leadin

You say you need to store a 13-characters string, then you say the end user
needs a 13 digit number. Since no math will be done I assume you mean the
end user needs a 13-character string. I don't understand the "need" to store
the leading zeros rather than formatting the string as needed, but I suppose
the validation rule as suggested represents your best option. I agree that
data entry should be by way of a form rather than directly in the table. For
importing I would think you need either to assure the formatting is done
before the import, or you need to process the data after import, perhaps by
way of an update query to pad the value with leading zeros.

WolfDog wrote:
Jeff,
I need to actually store the value as 13 characters. The intent is to allow
the user to input their internal "item #" and have it automatically add
leading zeroes and store that value as a 13 character string. The end user
of the value requires a 13 digit number. No math will be done...reference
only.

Depends on whether you want to STORE thirteen characters for each value or
DISPLAY thirteen characters.

[quoted text clipped - 18 lines]

Thanks!


--
Message posted via http://www.accessmonster.com

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:00 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.