PC Review


Reply
Thread Tools Rate Thread

Changing Primary Key numbering format

 
 
don
Guest
Posts: n/a
 
      31st Aug 2010
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
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      31st Aug 2010
On Tue, 31 Aug 2010 06:21:25 -0700 (PDT), don <(E-Mail Removed)> wrote:

>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/For...-US/accessdev/
http://social.answers.microsoft.com/.../en-US/addbuz/
and see also http://www.utteraccess.com
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto numbering for primary key The Chomp Microsoft Access VBA Modules 1 10th Jul 2008 07:52 PM
Changing numbering in std outline screws up existing numbering? =?Utf-8?B?QnJhZCBNaWxsc3BhdWdo?= Microsoft Word Document Management 2 21st Mar 2006 09:40 AM
auto numbering primary key =?Utf-8?B?TGluZGE=?= Microsoft Access Forms 11 16th Aug 2005 04:28 PM
Restart numbering auto number primary key =?Utf-8?B?VEhJTE1BTlQgU2VyZ2U=?= Microsoft Access Getting Started 2 17th Jun 2004 01:27 PM
Re-numbering Primary Key Victor Microsoft Access Queries 2 15th Oct 2003 05:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:10 AM.