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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do you add auto number system to existing form in access?



 
 
Thread Tools Display Modes
  #1  
Old January 7th, 2010, 03:50 PM posted to microsoft.public.access.forms
Lori-Access
external usenet poster
 
Posts: 1
Default How do you add auto number system to existing form in access?

I am new to Access and had a crash course in Access to set up a fairly simple
database. I have a form set up for data input by others and I thought the
record number would work as a reference number for backup data received but
the record number does not stay same for that particular facility - the form
puts the facility in alpha order so the original record number changes as new
data input in the form. Can I fix this somehow or can I add an auto number
reference id to my already existing form?
  #2  
Old January 7th, 2010, 04:44 PM posted to microsoft.public.access.forms
BruceM via AccessMonster.com
external usenet poster
 
Posts: 448
Default How do you add auto number system to existing form in access?

Clarification and details needed. Please describe the tables and
relationships. What do you mean by "record number"? What is a "reference
number for backup data received"?

As a guess, when you refer to the record number you mean the record that
appears when the counter shows 1 of 200, 5 of 1200, or whatever. If so, the
"record number" will change if the order changes. You will need to use a non-
changing field as the reference if you need the number to stay the same no
matter the order of records, filters, or anything else that could affect the
record count or sort order.

Lori-Access wrote:
I am new to Access and had a crash course in Access to set up a fairly simple
database. I have a form set up for data input by others and I thought the
record number would work as a reference number for backup data received but
the record number does not stay same for that particular facility - the form
puts the facility in alpha order so the original record number changes as new
data input in the form. Can I fix this somehow or can I add an auto number
reference id to my already existing form?


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/201001/1

  #3  
Old January 7th, 2010, 05:01 PM posted to microsoft.public.access.forms
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default How do you add auto number system to existing form in access?

Can I fix this somehow or can I add an auto number reference id to my
already existing form?
Access autonumbers are continous but not necessarily sequential or complete
- meaning some may be missing. They are for machine use and not for human
consumption.

You can have Access query generate one but it will not always be the same
for a particular record every time due to different sorting and total record
sets.

For what purpose do you want this number?

--
Build a little, test a little.


"Lori-Access" wrote:

I am new to Access and had a crash course in Access to set up a fairly simple
database. I have a form set up for data input by others and I thought the
record number would work as a reference number for backup data received but
the record number does not stay same for that particular facility - the form
puts the facility in alpha order so the original record number changes as new
data input in the form. Can I fix this somehow or can I add an auto number
reference id to my already existing form?

  #4  
Old January 7th, 2010, 11:29 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default How do you add auto number system to existing form in access?

On Thu, 7 Jan 2010 07:50:14 -0800, Lori-Access
wrote:

I am new to Access and had a crash course in Access to set up a fairly simple
database. I have a form set up for data input by others and I thought the
record number would work as a reference number for backup data received but
the record number does not stay same for that particular facility - the form
puts the facility in alpha order so the original record number changes as new
data input in the form. Can I fix this somehow or can I add an auto number
reference id to my already existing form?


You are apparently assuming that records in a table have a sequential record
number.

THEY DON'T.

A table is an unordered "heap" of records. If you add an autonumber, each
record will be assigned a unique number - but you should *not* assume that
these numbers are "records numbers"; they aren't guaranteed to be sequential,
they will always have gaps in the numbering, and they can even become random.

If you want to see records in some specific order you must - no option! -
include a field (or several fields) in the table which defines that order, and
display the records using a Query sorting by that field (or fields).
--

John W. Vinson [MVP]
 




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 09:09 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.