Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    On my website a have a free utility named FUZE that merges a selected front-end with copies of the back-end tables (basically it is the opposite of the built-in database splitter). So you end up with an all-in-one db having the latest front-end objects (if that is what you selected) and the latest back-end data. You would do your development in this file (as it is easier to modify local tables) then you would "de-fuze" it using the same utility or the db splitter.
    https://forestbyte.com/ms-access-utilities/fba-fuze/


    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  2. #17
    yrstruly is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2024
    Posts
    126
    The DB relationships has been all done in the Fe it seems, nothing in the Be. What is the best practice for relationships in Access? Will it influence the existing Fe if i also do the same relationships at the back with added new one's?

  3. #18
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,941
    Relationships can only be created/modified where the tables are - so if split, the back end. You cannot create a relationship between tables in different files. Don’t confuse relationships with joins, they look the same but are not the same

    The relationship is defined in the relationship window - but if one or both tables are in a different db, the enforce and cascade options are disabled - the rest is about the type of join

  4. #19
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,425
    You can create relationships in the FE when the links are valid. I actually would think it's where they should be, given that's where the queries, forms and reports reside. I might be wrong about the last part, but I do know it's possible.
    Last edited by Micron; 02-16-2025 at 11:12 AM. Reason: added info
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #20
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,941
    I disagree - these two tables are linked tables where I've connected a PK to a FK in the FE - note the bit that is highlighted, it is disabled. Yes a one to many 'relationship' is created, but that is all a join is. You are unable to set any relationship rules.
    Click image for larger version. 

Name:	image_2025-02-16_230713048.png 
Views:	16 
Size:	27.9 KB 
ID:	52712

    I guess if you are not managing the relationships in any way, but just want a default join to show when creating a query (i.e. you don't want to enforce any relationship rules), you can do so in the front end, but be clear that is not a relationship. If your PK is editable, you will need to write code to update the FKs. If you delete the primary record, you will need additional code to delete the child tables (assuming you don't want orphan child records).

  6. #21
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,425
    It seems you are correct. What I think I was looking at in the fe is the relationships set in the be. I guess they propagate forward (I'm getting forgetful ). The be has referential integrity set, and so do the fe relationships.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  7. #22
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,205
    This is a quote from the first part of my 3-paart series of articles: Relationships1


    For linked tables, the relationships need to be created in the linked backend database
    You can display a backend table relationship in the frontend relationships window.
    However, doing this will NOT over-ride any relationship already created in the backend
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

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

Similar Threads

  1. Replies: 10
    Last Post: 10-04-2021, 09:25 AM
  2. Replies: 9
    Last Post: 06-30-2021, 02:10 AM
  3. Replies: 7
    Last Post: 04-20-2018, 08:48 AM
  4. SQL Distinct not supported on Web Database
    By ehabo in forum Queries
    Replies: 9
    Last Post: 01-23-2014, 10:32 AM
  5. Operation is not supported for this type of object error
    By CementCarver in forum Programming
    Replies: 4
    Last Post: 06-17-2013, 02:04 PM

Tags for this Thread

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