Results 1 to 3 of 3
  1. #1
    mariam_s is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Sep 2019
    Posts
    1

    Relationships

    Hi

    I had to delete a relationship so i could change the data type of a field, now when ive gone back to put the relationship back, it isnt allowing me to enforce referential integrity like it was before.

    The error message im getting is "relationship must be on the same number of fields with the same data types" but they previously weren't

    confused !



    Also, how do I make the database look "pretty"?

    TIA

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,803
    for Q1, it seems too obvious so I must be missing something. Suppose both fields contained numbers but you had set their data types to text and joined them. Then you changed one to number data type (e.g. long integer) but didn't change the data type of the other end of the join. It stands to reason that you would not be able to re-establish the join, never mind enforce referential integrity. It almost sounds like you're saying you can make the join and save it, but you can't enforce referential integrity. That doesn't make sense to me, but then I've never tried to join 2 fields of dis-similar data types.

    As for Q2, that is a highly subjective question. Employ pleasing aesthetic design might be an answer. I wonder if you are overly concerned about eye candy before getting the operation and efficiency worked out...
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    Also, how do I make the database look "pretty"?
    Have a look at http://www.accessforums.net/showthread.php?t=58464
    Over 560 downloads and counting.

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

Similar Threads

  1. Need help with Relationships
    By mpaulbattle in forum Database Design
    Replies: 16
    Last Post: 08-25-2017, 06:38 PM
  2. Replies: 7
    Last Post: 08-05-2016, 11:53 AM
  3. Replies: 2
    Last Post: 07-27-2016, 10:25 AM
  4. Explicit Relationships and Implicit Relationships
    By Dazza666 in forum Database Design
    Replies: 2
    Last Post: 07-17-2013, 02:11 AM
  5. Help with Many to Many Relationships
    By alpinegroove in forum Database Design
    Replies: 5
    Last Post: 03-24-2011, 01:12 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