Steve R.
Retired
- Local time
 - Today, 00:39
 
- Joined
 - Jul 5, 2006
 
- Messages
 - 5,563
 
Databases get moved around. Consequently they have to be designed to (automatically) adapt to the new location. For the Access frontend obtaining the new path is relatively straitforward.
	
	
	
		
Recently, I had to relocate the backend so I had to find out how to obtain the path to the backend. After some searching, I found the code below posted by JANR.
	
	
	
		
Additional information is available here: Get the Path to the Database (.mdb) File
 
		Code:
	
	
	strDataBasePath = CurrentProject.Path
	Recently, I had to relocate the backend so I had to find out how to obtain the path to the backend. After some searching, I found the code below posted by JANR.
		Code:
	
	
	strBackEndPath = [URL="http://www.access-programmers.co.uk/forums/showpost.php?p=1063592&postcount=4"]Mid(Currentdb.TableDefs("NameOfOneLinkedTable").Connect, 11)[/URL]
	Additional information is available here: Get the Path to the Database (.mdb) File