dbTalk Databases Forums  

Link tables by custom autonumbers

comp.databases.ms-access comp.databases.ms-access


Discuss Link tables by custom autonumbers in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rhodrey
 
Posts: n/a

Default Link tables by custom autonumbers - 08-05-2003 , 08:44 AM






I have a maintenace table with a custom autonumber field. I have
approximately 1000 records in the table. I now want to add another
table, for parts, and link it to my maintenace table by the custom
autonumber. How can I accomplish that?

Reply With Quote
  #2  
Old   
Pavel Romashkin
 
Posts: n/a

Default Re: Link tables by custom autonumbers - 08-05-2003 , 10:55 AM






I suppose in the same fashion as with any other autonumber. What kind of
a problem do you have when linking tables? Or is it the table structure
that you are unsure about?
Pavel

Rhodrey wrote:
Quote:
I have a maintenace table with a custom autonumber field. I have
approximately 1000 records in the table. I now want to add another
table, for parts, and link it to my maintenace table by the custom
autonumber. How can I accomplish that?

Reply With Quote
  #3  
Old   
Rhodrey Shaw
 
Posts: n/a

Default Re: Link tables by custom autonumbers - 08-05-2003 , 01:03 PM



I did that. The thing is the autonumber in the new table started at one.
My custom autonumber is at 101000. How do I get the autonumber in the
parts table to be at the same figure as the one in the maintenance table


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #4  
Old   
Rick Brandt
 
Posts: n/a

Default Re: Link tables by custom autonumbers - 08-05-2003 , 01:14 PM



"Rhodrey Shaw" <rhodd_e (AT) hotmail (DOT) com> wrote

Quote:
I did that. The thing is the autonumber in the new table started at one.
My custom autonumber is at 101000. How do I get the autonumber in the
parts table to be at the same figure as the one in the maintenance table
Only the table on one side of the relationship should use an AutoNumber. The other
should just use a Long Integer and then you assign those records the same value as
the AutoNumber in the first table.




Reply With Quote
  #5  
Old   
Rhodrey Shaw
 
Posts: n/a

Default Re: Link tables by custom autonumbers - 08-05-2003 , 03:13 PM



So do I have to manually assign numbers to all the records, or do I just
add 1 and the rest will follow?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #6  
Old   
Rick Brandt
 
Posts: n/a

Default Re: Link tables by custom autonumbers - 08-05-2003 , 03:42 PM



"Rhodrey Shaw" <rhodd_e (AT) hotmail (DOT) com> wrote

Quote:
So do I have to manually assign numbers to all the records, or do I just
add 1 and the rest will follow?
Ordinarily you would have set this up before you added any data and used a
Form/SubForm for the data entry so that the key field would automatically get copied
to the related records in the subform. With pre-existing data you will have to
manually enter the correct number in all of child records.




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.