473,394 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

UNIQUE ID for the whole Database

Hi, I have a Access 2000 mdb which has 4 tables, These 4 tables are mapped to front end subforms. whenever a new record is created a unique id is generated using the Max ID+1 logic for that table.
Keeping this structure intact as 4 levels is there a way I can create a unique id for the whole Database so that each record can be identified.

I came across GUID datatype can I use it at every level to uniquely identify records at the overall Database level?

Please suggest If there are any other options?
Jul 6 '07 #1
5 2267
Rabbit
12,516 Expert Mod 8TB
Hi, I have a Access 2000 mdb which has 4 tables, These 4 tables are mapped to front end subforms. whenever a new record is created a unique id is generated using the Max ID+1 logic for that table.
Keeping this structure intact as 4 levels is there a way I can create a unique id for the whole Database so that each record can be identified.

I came across GUID datatype can I use it at every level to uniquely identify records at the overall Database level?

Please suggest If there are any other options?
Why would you need to do this?
Jul 6 '07 #2
MMcCarthy
14,534 Expert Mod 8TB
Check out this tutorial.

http://www.thescripts.com/forum/thread585228.html
Jul 7 '07 #3
Why would you need to do this?
Hi ,
The information source of the 4 tables comes from different feedfiles.Each table is a subtable for the other. Example table1 is the main and table 2 is related to table 1. Table3 to table 2 and so on. However each item in the table is unique . This relationship is shown as a mainform subform in the frontend.

We want to retain this relationship and structure as changing it has a huge impact. The problem is not with the structure but the logic in generating a unique ID across the 4 tables.
Jul 10 '07 #4
Check out this tutorial.

http://www.thescripts.com/forum/thread585228.html
Thanks for the link but we want to keep the structure denormalised and yet have a unique ID across all the 4 tables as the information source of the tables comes from different feedfiles.Each table is a subtable for the other. Example table1 is the main and table 2 is related to table 1. Table3 to table 2 and so on. However each item in the table is unique . This relationship is shown as a mainform subform in the frontend.

We want to retain this relationship and structure as changing it has a huge impact. The problem is not with the structure but the logic in generating a unique ID across the 4 tables.

I hope I have explained it properly. Any help is appreciated.
Jul 10 '07 #5
MMcCarthy
14,534 Expert Mod 8TB
Sorry if I'm not understanding you properly but for a mainform subform relationship to work. You would need normalised data.

For example Table1 could have a unique ID called Id1 and Table2 could have a unique ID called Id2 and a foreign key reference to Table1's uniqueID. Table3 could have a unique ID called Id3 and a foreign key reference to Table2's uniqueID, and so on.

You can now call any record in Table 1 and the related records from all the other tables.
Jul 10 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Louis Frolio | last post by:
Greetings All, I have read many upon many articles here regarding GUID data types and uniqueness. There have been many opinions regarding the effectiveness of GUID's and when they should/should...
8
by: Kragen Sitaker | last post by:
ERROR: Cannot insert a duplicate key into unique index pg_class_relname_nsp_index We've been getting this error in our application every once in a while --- typically once an hour to once a day,...
10
by: Mamuninfo | last post by:
Hello, Have any function in the DB2 database that can generate unique id for each string like oracle, mysql,sybase,sqlserver database. In mysql:- select md5(concat_ws("Row name")) from...
29
by: Lauren Wilson | last post by:
Does anyone know how the following info is extracted from the user's computer by a Front Page form? HTTP User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107...
4
by: panik | last post by:
Hi, I'm looking for something similar to Encryption. I'd like to generate URL's with a format that avoids visible ID's (e.g. http://thesite/viewlink.aspx?ID=105) Instead, I'd like to generate a...
6
by: Patrice Scribe | last post by:
I noticed that the SessionID is now a complex string instead of a simple number as it was under ASP. I believe it could be because when session variables are persisted ot the database, reusing a...
1
by: Mike Hunter | last post by:
(Please CC me on any replies as I'm not on the list) Hi, After a recent power failure, a program that uses a pgsql backend (netdisco) started to send me nastygrams. I tried the author's...
2
by: Miguel Isidoro | last post by:
Hi all, I am trying to include a xsd:unique element in my schema to make an attribute of an element unique at the whole document level. Consider the following xml fragment: <Form>...
0
by: Gabriel Genellina | last post by:
En Fri, 18 Apr 2008 12:23:08 -0300, Shawn Milochik <Shawn@Milochik.comescribió: A dictionary with keys is perfectly reasonable. But a *list* of values has to be searched linearly for every...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.