Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > Tables

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-18-2006, 10:38 PM
RBarber RBarber is offline
Registered User
 
Join Date: Apr 2006
Posts: 7
RBarber is on a distinguished road
help with setting up tables

Dear all,

i have having such trouble setting up some tables in a new db, and am wondering if someone could give me some tips as I really don't know what I'm doing (I am new to this).

I have one main table, called Client Information. The PK is CaseNumber. I also have 11 other tables. The PK in each of these is called things like CasedetailsID, witnessinfoID, etc. Each of these tables contains the CaseNumber field (supposed to be from the Client Information table). The Client Information table contains the PK from each of the other tables.

The way I have the relationships set up at the moment is that the Client Information Table is linked to each of the other tables via the fields called casedetailsID, witnessinfoID, casetypeID, etc. The relationships are all one to many (the 'many' side being on the Client Info table, the 'one' side being on the related tables). There is obviously something incorrect about the way I have the tables set up, however, as when I try to enter data into the form, although the data gets stored in the individual tables, none of my queries or reports seem to be working (ie, I try to run a report, but it doesn't show any data).

any tips or advice regarding a good way to go about setting up tables and relationships would be very much appreciated.
Reply With Quote
Sponsored Links
  #2  
Old 04-19-2006, 12:28 AM
neileg's Avatar
neileg neileg is offline
AWF VIP
 
Join Date: Dec 2002
Location: Newcastle, England
Posts: 5,970
neileg has a spectacular aura aboutneileg has a spectacular aura about
Wrong way round. The secondary tables should hold CaseNumber.
__________________
You can't always get what you want, but if you try sometimes you may just get what you need - Rolling Stones

Cheers, Neil
Reply With Quote
  #3  
Old 04-19-2006, 05:36 PM
RBarber RBarber is offline
Registered User
 
Join Date: Apr 2006
Posts: 7
RBarber is on a distinguished road
thank you. Should they be one to many or just one to one? and should I enforce referencial integrity?
Reply With Quote
  #4  
Old 04-20-2006, 12:40 AM
neileg's Avatar
neileg neileg is offline
AWF VIP
 
Join Date: Dec 2002
Location: Newcastle, England
Posts: 5,970
neileg has a spectacular aura aboutneileg has a spectacular aura about
Quote:
Originally Posted by RBarber
thank you. Should they be one to many or just one to one?
I don't know. It depends on the facts. You don't need to worry about this, anyway.
Quote:
and should I enforce referencial integrity?
Up to you. If you want to be able to delete the entry in the main table and have the subsidiary information deleted, too, then yes. I don't usually bother, but I'm not a proper programmer, just a hacker!
__________________
You can't always get what you want, but if you try sometimes you may just get what you need - Rolling Stones

Cheers, Neil
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes 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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping users away from tables nanfa General 6 03-22-2007 09:42 AM
Linked Tables/ Obdc Db..lots Of ?'s Breathe Tables 4 05-10-2006 08:42 AM
Help request - VBA to copy data from one set of tables to another gellerche Modules & VBA 4 03-28-2006 11:57 PM
Import Tables that have relationships goldenorb82 Tables 4 10-14-2004 08:46 PM
Relinking Tables etc Geoff Codd Modules & VBA 0 10-14-2004 08:44 AM


All times are GMT -8. The time now is 09:56 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World