Results 1 to 6 of 6
  1. #1
    TerraEarth is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    86

    Update queries in Front-End file?

    I was wondering if it is possible to update a backend's tables via an update-query on linked tables in a front-end file; and if so, if there are any ramifications that should be taken into consideration before doing such?



    If the answer to the above is yes, how would you go about restricting users from doing such things with their front-end copies?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Update data or structure? Both are possible. I give users the runtime version of Access, which would at least make it harder for them to create a query (I'd say they can't, but I'm sure there's probably a way). It the rare user that would even know how to write a query, particularly one that changes structure.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    TerraEarth is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    86
    Quote Originally Posted by pbaldy View Post
    Update data or structure? Both are possible. I give users the runtime version of Access, which would at least make it harder for them to create a query (I'd say they can't, but I'm sure there's probably a way). It the rare user that would even know how to write a query, particularly one that changes structure.
    Data! How would you write the query for such a thing? Exact same way as you would if the tables existed in the file itself? Does there need to be a distinction somewhere, that designates the linked table in the front end as a -linked table-?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Yes, same way. Local or linked tables, the query doesn't care, it just uses the table name either way:

    UPDATE TableName SET...

    You can't have a local table and a linked table with the same name.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    TerraEarth is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    86
    Quote Originally Posted by pbaldy View Post
    Yes, same way. Local or linked tables, the query doesn't care, it just uses the table name either way:

    UPDATE TableName SET...

    You can't have a local table and a linked table with the same name.
    I am actually incredibly surprised that Microsoft implemented this feature on their front-end files. What in the world?

  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,652
    I'm not; I think I'd be upset if they took it away. It's a common method of updating data in production apps. You typically wouldn't want users creating their own, but that's on the developer. I'd say the vast majority of users wouldn't even know what an update query was, and certainly couldn't create one.
    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: 2
    Last Post: 11-27-2018, 06:03 AM
  2. Another way to Auto Update of Front End
    By rankhornjp in forum Code Repository
    Replies: 23
    Last Post: 03-12-2014, 10:43 PM
  3. Replies: 2
    Last Post: 12-08-2011, 02:27 PM
  4. update front end mde
    By slimjen in forum Access
    Replies: 2
    Last Post: 10-31-2011, 11:37 AM
  5. Front End Update Problem
    By Randy in forum Access
    Replies: 2
    Last Post: 02-12-2011, 09:46 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