Its not clear what your question is
The code correctly opens a named folder
Don't assume we have a detailed knowledge of your database even if you have posted previous questions related to it
If you want it to find a folder depending on the record selected then you could use a DLookup.
Something like
Code:
Foldername = DLookup("FolderPath","TableName","ID = " & Me.ID)
Note that you may need to remove trailing backslashes to get such code to work
Code:
Foldername = DLookup("FolderPath","TableName","ID = " & Me.ID)
If Right(FolderName,1)="\" Then FolderName=Left(FolderName,Len(FolderName)-1)