| Chat with a LIVE Microsoft
Access Expert! |
||||
|
||||
|
#1
|
|||
|
|||
|
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. |
| Sponsored Links |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
thank you. Should they be one to many or just one to one? and should I enforce referencial integrity?
|
|
#4
|
||||
|
||||
|
Quote:
Quote:
__________________
You can't always get what you want, but if you try sometimes you may just get what you need - Rolling Stones Cheers, Neil |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Keeping users away from tables | nanfa | General | 6 | 03-22-2007 10:42 AM |
| Linked Tables/ Obdc Db..lots Of ?'s | Breathe | Tables | 4 | 05-10-2006 09:42 AM |
| Help request - VBA to copy data from one set of tables to another | gellerche | Modules & VBA | 4 | 03-29-2006 12:57 AM |
| Import Tables that have relationships | goldenorb82 | Tables | 4 | 10-14-2004 09:46 PM |
| Relinking Tables etc | Geoff Codd | Modules & VBA | 0 | 10-14-2004 09:44 AM |