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

assign a unique identifier



 
 
Thread Tools Display Modes
  #1  
Old February 24th, 2009, 04:22 AM posted to microsoft.public.access.gettingstarted
doninca
external usenet poster
 
Posts: 3
Default assign a unique identifier

I need my database to auto assign a name or number to a record. The user
would enter the first 4 digits which would identify a branch office. Such as
2250. There are four offices. Upon that entry a unique number (or
identifier) needs to be added to the same field. The purpose of this is to
uniquely identify an event. This unique identifier would be tied to other
tables as people are assigned to attend the event. Also, there is an
attendance capacity. Once the maximum attendance is met, I need the user to
recognize additional people cannot sign up for the event.

Any feedback on this is appreciated.
  #2  
Old February 24th, 2009, 06:08 PM posted to microsoft.public.access.gettingstarted
Fred
external usenet poster
 
Posts: 1,451
Default assign a unique identifier

You didn't specify what it is unique to. Each record? If so you simplest
solution is to separate that into two fields, the second being an autonumber,
and just concentation them when the identifier is needed.




"doninca" wrote:

I need my database to auto assign a name or number to a record. The user
would enter the first 4 digits which would identify a branch office. Such as
2250. There are four offices. Upon that entry a unique number (or
identifier) needs to be added to the same field. The purpose of this is to
uniquely identify an event. This unique identifier would be tied to other
tables as people are assigned to attend the event. Also, there is an
attendance capacity. Once the maximum attendance is met, I need the user to
recognize additional people cannot sign up for the event.

Any feedback on this is appreciated.

  #3  
Old February 24th, 2009, 06:41 PM posted to microsoft.public.access.gettingstarted
Steve[_57_]
external usenet poster
 
Posts: 598
Default assign a unique identifier

You need tables that look like ........
TblBranchOffice
BranchOfficeID
BranchOfficeName

TblPerson
PersonID
PersonName
etc

TblEvent
EventID
EventName
EventStartDate
EventEndDate

TblRegistration
Registration
RegistrationID
EventID
PersonID

Use of these tables does away with the need for the complexity of auto
assigning a name or number to a record.

Steve




"doninca" wrote in message
...
I need my database to auto assign a name or number to a record. The user
would enter the first 4 digits which would identify a branch office. Such
as
2250. There are four offices. Upon that entry a unique number (or
identifier) needs to be added to the same field. The purpose of this is
to
uniquely identify an event. This unique identifier would be tied to other
tables as people are assigned to attend the event. Also, there is an
attendance capacity. Once the maximum attendance is met, I need the user
to
recognize additional people cannot sign up for the event.

Any feedback on this is appreciated.



  #4  
Old February 26th, 2009, 03:08 AM posted to microsoft.public.access.gettingstarted
doninca
external usenet poster
 
Posts: 3
Default assign a unique identifier



"Fred" wrote:

You didn't specify what it is unique to. Each record? If so you simplest
solution is to separate that into two fields, the second being an autonumber,
and just concentation them when the identifier is needed.

Each meeting needs a unique identifier. So, the record of the meeting which contains the location and contact information. Thank you for your suggestion. I am going to look at both suggestions received and figure out what is best for our needs. thank you so much


"doninca" wrote:

I need my database to auto assign a name or number to a record. The user
would enter the first 4 digits which would identify a branch office. Such as
2250. There are four offices. Upon that entry a unique number (or
identifier) needs to be added to the same field. The purpose of this is to
uniquely identify an event. This unique identifier would be tied to other
tables as people are assigned to attend the event. Also, there is an
attendance capacity. Once the maximum attendance is met, I need the user to
recognize additional people cannot sign up for the event.

Any feedback on this is appreciated.

  #5  
Old February 26th, 2009, 03:10 AM posted to microsoft.public.access.gettingstarted
doninca
external usenet poster
 
Posts: 3
Default assign a unique identifier



"Steve" wrote:

You need tables that look like ........
TblBranchOffice
BranchOfficeID
BranchOfficeName

TblPerson
PersonID
PersonName
etc

TblEvent
EventID
EventName
EventStartDate
EventEndDate

TblRegistration
Registration
RegistrationID
EventID
PersonID

Use of these tables does away with the need for the complexity of auto
assigning a name or number to a record.

Steve




"doninca" wrote in message
...
I need my database to auto assign a name or number to a record. The user
would enter the first 4 digits which would identify a branch office. Such
as
2250. There are four offices. Upon that entry a unique number (or
identifier) needs to be added to the same field. The purpose of this is
to
uniquely identify an event. This unique identifier would be tied to other
tables as people are assigned to attend the event. Also, there is an
attendance capacity. Once the maximum attendance is met, I need the user
to
recognize additional people cannot sign up for the event.

Any feedback on this is appreciated.


I appreciate your help. I am going to look at both suggestions to determine which will better meet our needs. Thank you again. I am surprised that people are so helpful and generous with their time and knowledge.

 




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:51 AM.


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