home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!uvaarpa!murdoch!csissun12.ee.Virginia.EDU!cyj9h
- From: cyj9h@csissun12.ee.Virginia.EDU (Charles Y. Choi)
- Subject: Yet Another Simple (?) Question on Paradox
- Message-ID: <1992Aug31.195806.13243@murdoch.acc.Virginia.EDU>
- Keywords: Unique Record Field, Paradox
- Sender: usenet@murdoch.acc.Virginia.EDU
- Organization: University of Virginia
- Distribution: na
- Date: Mon, 31 Aug 1992 19:58:06 GMT
- Lines: 50
-
-
- Here's a question that I've yet to figure out. When creating a new record,
- how can you get a field in that record (say ID) to automatically be filled
- in with the record number? For example
- ____________________________________________________________
- Rec. # | ID | First | Last | ...
- ------------------------------------------------------------
- 1 | 1 | Jane | Smith |
- ------------------------------------------------------------
- 2 | 2 | Bob | Frank |
- ------------------------------------------------------------
- 3 | 3 | Mary | Jane |
- ^
- As each new record in this table is generated, an ID number is
- generated. A problem though is if you enter a blank record. If you
- write a macro that reads the record number and inserts it into ID
- during EDIT mode, when you save the table, the synchronization
- between the record number and the ID is lost.
-
- _____________________________________EDIT___________________
- Rec. # | ID | First | Last | ...
- ------------------------------------------------------------
- 1 | 1 | Jane | Smith |
- ------------------------------------------------------------
- 2 | | | |
- ------------------------------------------------------------
- 3 | 3 | Mary | Jane |
-
- After saving...
- _____________________________________MAIN___________________
- Rec. # | ID | First | Last | ...
- ------------------------------------------------------------
- 1 | 1 | Jane | Smith |
- ------------------------------------------------------------
- 2 | 3 | Mary | Jane |
-
-
- So what do I want? All I really want to do is have an automated
- way of generating a unique ID for each record period.
-
- Can anybody here help?
-
- Thanks!
-
-
- -Charles Y. Choi
- cyj9h@Virginia.EDU
- --
- "What a morning! Birds, fish, frogs, and humans!"
- -Maya the Bee
-