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  

Remove Negative AutoNumbers



 
 
Thread Tools Display Modes
  #1  
Old May 24th, 2004, 04:14 PM
Matt
external usenet poster
 
Posts: n/a
Default Remove Negative AutoNumbers

Is there a way to have only positive numbers in an
AutoNumber field set to random?

Thanks in advance,
Matt
  #2  
Old May 24th, 2004, 04:34 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default Remove Negative AutoNumbers

No. Random is random.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Matt" wrote in message
...
Is there a way to have only positive numbers in an
AutoNumber field set to random?

Thanks in advance,
Matt



  #3  
Old May 24th, 2004, 04:34 PM
Lynn Trapp
external usenet poster
 
Posts: n/a
Default Remove Negative AutoNumbers

No. Random means random and the random generator is going to go through the
full range of long integers.

Now, ask yourself the question, "Why does it matter"? All an AutoNumber
field does is provide you with a unique identifier for a record. It should
not matter what it's value is. If you really need to display it to your
users as a positive value, however, you can use the ABS() function.

--
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security: www.ltcomputerdesigns.com/Security.htm


"Matt" wrote in message
...
Is there a way to have only positive numbers in an
AutoNumber field set to random?

Thanks in advance,
Matt



 




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 06:57 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.