Skip to content

Commit

Permalink
Support placeholders in export path
Browse files Browse the repository at this point in the history
Add support for a placeholder in the export path. `%dbName%` will resolve to the file name of the current project, and can be used to build a custom relative path. Closes #139
  • Loading branch information
joyfullservice committed Jan 27, 2021
1 parent f932b43 commit b9e84c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Version Control.accda.src/modules/clsOptions.bas
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ Public Function GetExportFolder() As String
' Other absolute path (i.e. c:\myfiles\)
strFullPath = Me.ExportFolder
End If
' Placeholder replacements
If InStr(1, strFullPath, "%dbName%", vbTextCompare) > 0 Then
strFullPath = Replace(strFullPath, "%dbName%", CurrentProject.Name, , , vbTextCompare)
End If
End If

' Check to make sure we have built a valid path.
Expand Down

0 comments on commit b9e84c5

Please sign in to comment.