dbTalk Databases Forums  

Storing A Number

comp.databases.ms-access comp.databases.ms-access


Discuss Storing A Number in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris
 
Posts: n/a

Default Storing A Number - 02-27-2008 , 09:37 AM






Hello,

Quick and easy question, I hope.....

Without using a text fieldtype, how can I get Access to store and
display the number 12.1.2 or 1.3.9 ?


Reply With Quote
  #2  
Old   
Stuart McCall
 
Posts: n/a

Default Re: Storing A Number - 02-27-2008 , 10:45 AM






"Chris" <chris.hogan (AT) gmail (DOT) com> wrote

Quote:
Hello,

Quick and easy question, I hope.....

Without using a text fieldtype, how can I get Access to store and
display the number 12.1.2 or 1.3.9 ?
The only way (AFAIK) without using text field type is to store each number
in it's own field, then concatenate them for display:

Field1 = 12
Field2 = 1
Field3 = 2

Then, to display:

Field1 & "." & Field2 & "." & Field3




Reply With Quote
  #3  
Old   
Bob Quintal
 
Posts: n/a

Default Re: Storing A Number - 02-27-2008 , 06:04 PM



Chris <chris.hogan (AT) gmail (DOT) com> wrote in news:92a4112f-2e3c-4570-932f-
3a0a6f26a777 (AT) 28g2000hsw (DOT) googlegroups.com:

Quote:
Hello,

Quick and easy question, I hope.....

Without using a text fieldtype, how can I get Access to store and
display the number 12.1.2 or 1.3.9 ?

12.1.2 is not a number. neither is 1.3.9

These are hiearchical identifiers, and can be stored either as
separate fields or you can store the various levels in a common
numeric field by scaling them. 12 *10000 + 1*100 + 2*1 and then
descaling for display.

What is your objection to storing them as text?

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com



Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.