troubleshooting Question

Access (VBA) to create unique ID numbers for alike records

Avatar of ExpExchHelp
ExpExchHelpFlag for United States of America asked on
Microsoft AccessVBA
7 Comments1 Solution87 ViewsLast Modified:
Experts:

I need some assistance with (potentially) a VBA function that **adds a unique ID number** to records.   If records are alike (based on various demographics), the same new ID number must be replicated.

In other words, qryTable1 should be turned into a "Make Table" (and using the VBA function) and then add **8 records** with each alike record (based on [Name] and [Age] to the **new ID" field.   Alternatively, qryTable2 should be turned into a "Make Table" (and using the VBA function) and then add **9 records** with each alike record (based on [Name] and [Age] and [Ethnicity] to the **new ID" field.

As a picture is worth a thousand words, I believe (hope) the additional information in the spreadsheet provides sufficient information.

Thank you in advance,
EEH
Example-Data.xlsx
Example-Data.accdb
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros