Changing Primary Key numbering format

D

don

Hi Im using Access 2003. I need to bring two tables together to
generate a report 1 is from a maintenance assets database and 1 is
from a maintenance general repair/jobs database. Both have their own
respective ID fields set to autonumber. On the jobs side I just have
a job description but on the other I have asset groups with its
description and ID and hanging from that a breakdown of the tasks that
apply to the maintenance of that asset. With help Ive now got a Union
qry bringing the two tables together but I am at present running the
risk of duplicating the ID field. Ive tried applying a custom format
to the ID table but although I can add as many zeros or put a 1 and
zeros in front the underlying number still seems to just to continue
to count from 1 upwards. Am I able to change this.

Thanks in advance for any help.

DonH
 
J

John W. Vinson

Hi Im using Access 2003. I need to bring two tables together to
generate a report 1 is from a maintenance assets database and 1 is
from a maintenance general repair/jobs database. Both have their own
respective ID fields set to autonumber. On the jobs side I just have
a job description but on the other I have asset groups with its
description and ID and hanging from that a breakdown of the tasks that
apply to the maintenance of that asset. With help Ive now got a Union
qry bringing the two tables together but I am at present running the
risk of duplicating the ID field. Ive tried applying a custom format
to the ID table but although I can add as many zeros or put a 1 and
zeros in front the underlying number still seems to just to continue
to count from 1 upwards. Am I able to change this.

Thanks in advance for any help.

DonH

If it's just for a report, why include either Autonumber in the query at all?
An autonumber has only one purpose: to define a meaningless unique key for a
table, to be used (under the covers and out of view) for linking to other
tables. If you're assigning meaning to the value you probably should not be
using an Autonumber for it at all!

Please explain how the autonumber value is being used in this UNION query, and
how you expect it to be duplicated (or, more accurately, how the already
existing duplications might be exposed).
--

John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/Forums/en-US/accessdev/
http://social.answers.microsoft.com/Forums/en-US/addbuz/
and see also http://www.utteraccess.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top