dbTalk Databases Forums  

trying to make since out of a database

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


Discuss trying to make since out of a database in the comp.databases.ms-access forum.



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

Default trying to make since out of a database - 03-31-2009 , 08:10 AM






I just received a mess.
They admit it and are willing to do whatever it takes to fix.

they have 4 tables and they entered the data in the tables, they have
no forms.

each table is a different set of data for the same people
they used an autoid and set it to a primary key, not sure why, but
they did this in each table.

so they had
table 1
autoid 1 bob jones
table 2
autoid 1 bob jones
table 3
autoid 1 bob jones

they all match id and name until you get to table 4

in table 4 its multi records for the same people

autoid 1 bob jones
autoid 2 bob jones
autoid 3 jim smith
autoid 4 jim smith


I made a table demographics and put their main identifiers in here
I can link this to table 1 2 3 all works fine.
Now to table 4

is there a way to get table 4 structured to work as a 1 to many with
the new tbldemographics?

I can't think of any way to get table 4 to work but I wanted to ask
before going to any extremes like re entering the data.

thanks for any ideas


Reply With Quote
  #2  
Old   
sparks
 
Posts: n/a

Default Re: trying to make since out of a database - 03-31-2009 , 08:14 AM






I wanted to ad something

tables 1 2 & 3 all have 153 record and they all match...God only knows
how

table 4 has 296 records being mulable records for some of these
people..it does have at least 1 record for each of the 153 records
contrained in the other tables. There are not any records that are not
found in the others.



On Tue, 31 Mar 2009 13:10:35 GMT, sparks <sparks (AT) comcast (DOT) net> wrote:

Quote:
I just received a mess.
They admit it and are willing to do whatever it takes to fix.

they have 4 tables and they entered the data in the tables, they have
no forms.

each table is a different set of data for the same people
they used an autoid and set it to a primary key, not sure why, but
they did this in each table.

so they had
table 1
autoid 1 bob jones
table 2
autoid 1 bob jones
table 3
autoid 1 bob jones

they all match id and name until you get to table 4

in table 4 its multi records for the same people

autoid 1 bob jones
autoid 2 bob jones
autoid 3 jim smith
autoid 4 jim smith


I made a table demographics and put their main identifiers in here
I can link this to table 1 2 3 all works fine.
Now to table 4

is there a way to get table 4 structured to work as a 1 to many with
the new tbldemographics?

I can't think of any way to get table 4 to work but I wanted to ask
before going to any extremes like re entering the data.

thanks for any ideas


Reply With Quote
  #3  
Old   
Builder
 
Posts: n/a

Default Re: trying to make since out of a database - 04-01-2009 , 12:24 AM



sparks wrote:
Quote:
I just stuck in a new RecordNumber in each and then updated the table
with a little code. Worked fine
so
1 bob jones is now tied to three records in the multi table all with 1
as its id.


Excellente`

Quote:
On Tue, 31 Mar 2009 15:13:02 GMT, sparks <sparks (AT) comcast (DOT) net> wrote:


got all of this done except one thing

you'll have to join table 4 to tblDemographics on Name and update the
ID field in table 4.

not sure how to do this since its a 1 to many relationship.


On Tue, 31 Mar 2009 10:00:07 -0500, "Builder" <nospam (AT) buildit (DOT) com
wrote:

you'll have to join table 4 to tblDemographics on Name and update
the ID field in table 4.



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.