Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Form_CabinetFolders / dialog file pickers and the like to add cabinet…
… folder records
- Loading branch information
C. Johnson
committed
May 8, 2018
1 parent
791f309
commit 4d43b03
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
VERSION 1.0 CLASS | ||
BEGIN | ||
MultiUse = -1 'True | ||
END | ||
Attribute VB_Name = "Form_CabinetFolders" | ||
Attribute VB_GlobalNameSpace = False | ||
Attribute VB_Creatable = True | ||
Attribute VB_PredeclaredId = True | ||
Attribute VB_Exposed = False | ||
Option Compare Database | ||
Option Explicit | ||
|
||
Private Sub cmdFilePathPicker_Click() | ||
Dim sDestinationFolder As String | ||
|
||
'Get a path | ||
Let sDestinationFolder = DestinationFolderDialog | ||
|
||
'Take the slug from the end | ||
Let FilePath.Value = FileFolderSlug(sDestinationFolder) | ||
End Sub | ||
|
||
Private Sub cmdFileSourcePathPicker_Click() | ||
Dim sDestinationFolder As String | ||
|
||
'Get a path | ||
Let sDestinationFolder = DestinationFolderDialog | ||
|
||
'Take the slug from the end | ||
Let FileSourcePath.Value = FileFolderSlug(sDestinationFolder) | ||
|
||
End Sub | ||
|
||
Private Sub cmdFolderPathPicker_Click() | ||
Dim sDestinationFolder As String | ||
Dim NamingConvention As New CScanFileNamingConvention | ||
|
||
'Get a path | ||
Let sDestinationFolder = DestinationFolderDialog | ||
|
||
'Feed a hypothetical scan file name into NamingConvention | ||
If Len(Dir(sDestinationFolder & "\ControlFile\.")) > 0 Then | ||
Let sDestinationFolder = sDestinationFolder & "\ControlFile" | ||
ElseIf Len(Dir(sDestinationFolder & "\ControlFiles\.")) > 0 Then | ||
Let sDestinationFolder = sDestinationFolder & "\ControlFiles" | ||
End If | ||
|
||
Let NamingConvention.Url = sDestinationFolder & "\copier.pdf" | ||
|
||
Let FolderPath.Value = NamingConvention.RelativePath | ||
End Sub | ||
|
||
Private Sub cmdSign_Click() | ||
If Len(Nz(AddedToDatabaseBy.Value)) = 0 Then | ||
Let AddedToDatabaseBy.Value = getUserName | ||
End If | ||
|
||
Let AddedToDatabaseOn.Value = Now | ||
End Sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters