Rmaster2022
Member
- Local time
- Today, 00:41
- Joined
- Apr 1, 2022
- Messages
- 32
I created a database for someone to use on their computer. They do not have the full ACCESS application, so I loaded the runtime version on their computer. I split the database so that I could make changes to the front end without changing any of the data in their tables. Both the FE and the BE will be in the same folder on the one computer. Since I cannot use the linked table manager in runtime, what would be the VBA code to direct the FE to the BE? I prefer a simple code where I include the path to the BE in the VBA code. Or am I taking a wrong approach to this?
I did spend quite a bit of time looking for such a VBA code. I found this one. Will it work? Would I use it as an on load event for the unbound main menu?
Dim dbCurr As Database
Dim tdfTableLink As TableDef
For Each tdfTableLink In dbCurr.TableDefs
tdfTableLink.Connect = ";DATABASE=" & (Insert new file path)
tdfTableLink.RefreshLink
Next
I did spend quite a bit of time looking for such a VBA code. I found this one. Will it work? Would I use it as an on load event for the unbound main menu?
Dim dbCurr As Database
Dim tdfTableLink As TableDef
For Each tdfTableLink In dbCurr.TableDefs
tdfTableLink.Connect = ";DATABASE=" & (Insert new file path)
tdfTableLink.RefreshLink
Next