Snuggle Walrus
Member
- Local time
- Today, 21:01
- Joined
- May 14, 2020
- Messages
- 32
Hello all!
I'll start by saying although I've been using access and VBA now for a few years I'm still very new and this may be something super easy so I apologise if this is a very dumb question. I've been trying to find a solution to this for the last 2+ hours but can't quite find what I'm looking for online.
Basically, I'm working on a way of being able to update my front end files with new 'updates' to forms and such that I can push out a bit easier than giving just a new access file every time, although only a few people are using it I don't like the running around. Now I believe I've found a way around doing this with forms just fine but occasionally I will have updated the back end tables with either new columns or the back end file with additional tables. From my understanding, without relinking the file itself these new tables won't be accessible. Usually, I'd just go around and relink the tables manually but I'd really like to automate this with some VBA code either by removing the current link to the tables file (.accdb) and then relinking it and including ALL tables or just relinking and then including the new tables also.
I'm really struggling to get my head around this, basically, I just need a button that when it's clicked (it'll do the form stuff at the same time which is stored in a separate folder if there are any new forms) to either...
Is this possible at all? I'm sure there's a way. I'd really appreciate any help or guidance on how to perform this action. Below are some notes that may help on understanding? if not please ignore the below bullet points haha.
Thanks everyone have a great day.
I'll start by saying although I've been using access and VBA now for a few years I'm still very new and this may be something super easy so I apologise if this is a very dumb question. I've been trying to find a solution to this for the last 2+ hours but can't quite find what I'm looking for online.
Basically, I'm working on a way of being able to update my front end files with new 'updates' to forms and such that I can push out a bit easier than giving just a new access file every time, although only a few people are using it I don't like the running around. Now I believe I've found a way around doing this with forms just fine but occasionally I will have updated the back end tables with either new columns or the back end file with additional tables. From my understanding, without relinking the file itself these new tables won't be accessible. Usually, I'd just go around and relink the tables manually but I'd really like to automate this with some VBA code either by removing the current link to the tables file (.accdb) and then relinking it and including ALL tables or just relinking and then including the new tables also.
I'm really struggling to get my head around this, basically, I just need a button that when it's clicked (it'll do the form stuff at the same time which is stored in a separate folder if there are any new forms) to either...
- Clear the linked table file. (.accdb)
- Link the table file(.accdb) again with ALL the tables included in the file. (this file location remains the same and is set it)
- Relink the existing table file (.accdb) but include the new tables added to the file.
Is this possible at all? I'm sure there's a way. I'd really appreciate any help or guidance on how to perform this action. Below are some notes that may help on understanding? if not please ignore the below bullet points haha.
- The system is a work in progress so I create updates to add new forms to add new functionality.
- Front end system updates is on an isolated version 'copy' with its own copy of the back end system (.accdb)
- The back end system is one .accdb that stores currently 39 tables (live) and 43 tables in the 'update' version I'm about to add to.
- Actual table data is NOT changed in the updates only new columns and potential new tables for new areas of my system.
Thanks everyone have a great day.