Why can't you just change the links in your front-end to point to the back-end tables via the network address, and work that way yourself? (Keeping backups in case of problems, of course). Surely that would mean you no longer need to change it each time you distribute.
This is your best option.
Use a UNC link to your back end tables.
Assuming your PC is called 'ZeeshanPC' and the share you have defined for others to access via is called 'BackEnd' (with the database in the root of that share), then make a connection in Access to the back end database as \\ZeeshanPC\BackEnd\CDM_be.Mdb and connect to the tables from there.
If, for any reason this will not work then you can add some code to the OnOpen event of your first form (the one defined in StartUp options).
So, if you had a linked table called tblMain, then you can test if it works (using On Error Resume Next or whatever) and, if it doesn't, assume it's because it's accessing remotely and change the Connection property.
At this point I did some testing and found that, although it doesn't complain when you set the .Connect property, nor does it actually change it :(
So, unless someone else knows how set this, you'll have to go with the first option.
BTW - the .Connect property for a table (EG tblMain) would be CurrentDB.TableDefs!tblMain.Connect.
If it's blank then it's not a linked table.