Results 1 to 6 of 6
  1. #1
    magic_andrew is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    2

    I can't get the correct relationships in my database

    Hi,
    I've created a database which I think I've normalized (correct me if I'm wrong) and I'm sure I've got the relationships correct. However, when trying to implement this in access, I can't seem to get the relationships to match up. Any help?
    Click image for larger version. 

Name:	Picture1.jpg 
Views:	14 
Size:	89.2 KB 
ID:	19989

  2. #2
    Rawb is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    I can't speak to normalization without knowing more about what all the Tables are for, but the two Tables tblWeekOrders and tblPeriodWeeks look a little shifty to me. Can you explain a little more about what exactly your database is for and what the purpose is for each Table?

    Also, you shouldn't use question marks or percent signs (or anything except letters, numbers, and the underscore) in Column names.

  3. #3
    magic_andrew is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    2
    I'm using it in conjunction with a VB form to enable a user to edit it via the form. Here's how it works (let's just say we're doing it directly in Access):
    tblOrderDetails and tblCustomerDetials is pretty self explanatory. CustomerID is the name of the customer/company rather than a number assigned to them whereas OrderID is a number entered by the user.
    tblWeekOrders is the linking table (I think). It shows the Orders, which customer they belong to and what Week (1-4) in the 'Period' (1-13) they are going out.
    tblPeriodWeeks is the one, unsurprisingly, I'm unsure about as well. It's meant to be able to differentiate between week 1 in period 1 to week 1 in period 2 for example. The user would also have to enter which period the order is in.
    Hope that helps. It's hard to explain what I'm trying to do :S

    Here's an attachment of the database:
    https://drive.google.com/file/d/0Byk...ew?usp=sharing

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Andrew,

    I agree with Rawb -your tables are suspicious.

    Don't use anything but alphanumerics and underscore '_' in table and object names with Access. It will save you a lot of frustration and wasted time with syntax errors.

    You should work through this tutorial to get a better handle on normalization and table design. You'll learn more in an hour than doing trial and error for a few months.

    Also, here are some free video tutorials that will help with concepts of normalization etc.
    Work through the tutorial and watch the videos, then go back to your database design with what you have learned.

    Good luck.

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Pay attention to the sections on Primary Keys and Foreign Keys........

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Post 3 was moderated, just approved.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 10-27-2014, 04:59 AM
  2. Replies: 5
    Last Post: 09-12-2014, 06:41 AM
  3. Correct tables for an effective database
    By Sillub in forum Database Design
    Replies: 6
    Last Post: 08-04-2012, 09:21 PM
  4. Setting correct relationships
    By rfalv32 in forum Access
    Replies: 1
    Last Post: 10-22-2011, 07:59 PM
  5. Table relationships correct?
    By monkeyhead in forum Database Design
    Replies: 2
    Last Post: 12-07-2010, 02:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums