Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 32
  1. #16
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Orange,



    I took notes, care to see?

  2. #17
    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,870
    No not really. But I am glad that you got something from the videos.

    Did you follow his sample and see why he has the tables and relationships that he does?

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    The attached is what makes sense to me. EDIT: Purpose served, file removed.

    Because you are constructing custom unique ID for vehicles, customers, employers, sales reps, the Autonumber fields are not needed. I removed them and set relationships on the constructed ID fields. Had to correct a couple of the CustomerID values in the Vehicles table before the join between Vehicles and Customers could be set.

    Some people would recommend to still use the Autonumber fields as PK/FK. If you do, would also want to set the constructed ID fields as Index Yes no duplicates. And the constructed CustomerID field would NOT be in Vehicles, only the FK field related to the customer Autonumber. And NONE of the constructed IDs would be in related tables. You could even have the VIN as the PK in Vehicles. At least it should be set as Index Yes no duplicates.

    I simplified table names. Good to see no spaces, special characters, punctuation (underscore can be exception) in field names. This convention recommended for all names.

    The images in the attachment field have at least doubled the file size. Was just working with images yesterday. Discovered can be an issue to display images from attachment field (however, yours are working just fine). I prefer to leave the images in a file outside the db and then save the folder path in a text field. Then use image control with ControlSource set to that field. A major reason against Attachment field is file bloat. Access has a file size limit of 2gb. Attachments, especially images, use up that allotment. Although you probably will not have to worry about hitting 2gb even with attached images.

    Zip should be a text field because it is an identifier (like SSN and phone numbers), not a number value. As a number field zip like 00045 would drop the leading zeros. And could not have hyphenated zips because this would be a text string.
    Last edited by June7; 02-13-2012 at 11:49 AM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #19
    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,870
    June7 can you post a jpg or pdf of the relationships from that database? I Have Acc2003 so can use the accdb.

  5. #20
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Here is mdb version - without images of course because no attachment field in 2003.

    EDIT: Purpose served, file removed.
    Last edited by June7; 02-13-2012 at 12:23 AM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #21
    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,870
    Thanks for the mdb


    Edit: I have attached a jpg of the Relationships for those following this thread.
    Last edited by orange; 02-13-2012 at 10:57 AM.

  7. #22
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Thank you sooooooooooo much June; I know that you went above & beyond what you may do for most people. I gratefully & sincerely appreciate what you've done for me

    To both Orange & You I'm going to take a long look at the Relationships between the Tables & try to comprehend their Relationships. I may have question if that's ok

    Thank again June

  8. #23
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    June or Orange,

    In the Relationship window, under the "1" is an arrow. How did you do that & more importantly whatt des it mean?

  9. #24
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    It means that table is the 'one' side of a relationship. It is set by clicking Enforce Referential Integrity. Double click the line joining the fields to open a dialog.
    http://office.microsoft.com/en-us/ac...010120534.aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  10. #25
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    Here's a sample, take a look at it and ask questions.

  11. #26
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Ray, what is it you want djlntn to understand from your example db? You built duplicate tables but did not establish all relationships.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  12. #27
    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,870
    Quote Originally Posted by djclntn View Post
    June or Orange,

    In the Relationship window, under the "1" is an arrow. How did you do that & more importantly whatt des it mean?
    He goes through the process of establishing Cardinality in this video

    http://www.youtube.com/watch?v=q1GaaGHHAqM

  13. #28
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    Wanted to show 1 possible design and get him to ask some questions on relating them.

  14. #29
    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,870
    Ray, I have the same question as June7 - What is the point exactly?

    Not everyone can use accdb, that is why I posted June7's response to djcIntn as a jpg.
    If you have the relationships defined differently, why not post a jpg and some text to tell us what and why you have adjusted/ developed the model you have?

    Putting an answer back inside an accdb isn't really helping-- in my view.

    OOPs I was writing while Ray was posting.

  15. #30
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    For me anyway, I learn more by getting pointed in the right direction and trying to figure it out then coming back with specific questions. It just sticks better for me. Having someone give me too much detail to start with let's me finish quicker but 3 months later I have to ask the same questions again.

Page 2 of 3 FirstFirst 123 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Might someone help with relating some Tables?
    By djclntn in forum Database Design
    Replies: 20
    Last Post: 02-08-2012, 11:35 AM
  2. My first Database, struggling a bit
    By ravihotwok in forum Access
    Replies: 1
    Last Post: 12-07-2011, 05:17 AM
  3. struggling with query, plz help
    By jimgros in forum Queries
    Replies: 2
    Last Post: 07-26-2011, 03:35 AM
  4. Replies: 12
    Last Post: 06-14-2011, 01:42 PM
  5. Relating 2 Tables - Relational Problem
    By jeng in forum Database Design
    Replies: 5
    Last Post: 04-01-2010, 09:25 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