Skip to content

Commit e4e1bf0

Browse files
committed
Fix: First start without config
1 parent daf4adf commit e4e1bf0

11 files changed

Lines changed: 36 additions & 12 deletions

File tree

access-add-in/AccUnitLoader.accda

0 Bytes
Binary file not shown.

access-add-in/AccUnitLoader.accda.src/documents.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"Databases": {
88
"SummaryInfo": {
99
"Author": "Josef Pötzl",
10+
"Comments": "Activate AccUnit for Access/VBA",
1011
"Company": "accunit-codelib.net",
1112
"Title": "AccUnit Loader"
1213
}

access-add-in/AccUnitLoader.accda.src/modules/modTypeLibCheck.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Private Const EXTENSION_KEY_APPFILE As String = "AppFile"
2929
Public Property Get DefaultAccUnitLibFolder() As String
3030
Dim FilePath As String
3131
FilePath = CodeVBProject.FileName
32-
FilePath = Left(FilePath, Len(FilePath) - InStrRev(FilePath, "\"))
32+
FilePath = Left(FilePath, InStrRev(FilePath, "\"))
3333
DefaultAccUnitLibFolder = FilePath & "lib"
3434
End Property
3535

access-add-in/AccUnitLoader.accda.src/nav-pane-groups.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"Info": {
33
"Class": "clsDbNavPaneGroup",
4-
"Description": "Navigation Pane Custom Groups",
5-
"Export File Format": 1.1
4+
"Description": "Navigation Pane Custom Groups"
65
},
76
"Items": {
87
"Categories": [

access-add-in/AccUnitLoader.accda.src/tbldefs/ACLib_ConfigTable.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"Name": "ACLib_ConfigTable",
88
"Connect": ";DATABASE=C:\\Users\\poetzl.joposol\\AppData\\Roaming\\AccessCodeLib\\ACLib_Config.accdu",
99
"SourceTableName": "ACLib_ConfigTable",
10-
"Attributes": 1073741824,
11-
"PrimaryKey": "[PropName]"
10+
"Attributes": 1073741824
1211
}
1312
}

access-add-in/AccUnitLoader.accda.src/vcs-options.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Info": {
3-
"AddinVersion": "4.0.23",
3+
"AddinVersion": "4.0.34",
44
"AccessVersion": "16.0 32-bit"
55
},
66
"Options": {
@@ -36,6 +36,7 @@
3636
"FormatSQL": true,
3737
"ForceImportOriginalQuerySQL": false,
3838
"SaveTableSQL": true,
39+
"SplitLayoutFromVBA": false,
3940
"StripPublishOption": true,
4041
"SanitizeColors": 1,
4142
"SanitizeLevel": 2,

excel-add-in/AccUnitLoader.xlam

43.8 KB
Binary file not shown.

excel-add-in/AccUnitLoader_Install.vbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ Function CopyFiles()
8989

9090
End Function
9191

92-
92+
'Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\Add-in Manager

excel-add-in/source/AccUnitLoaderForm.frm

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
VERSION 5.00
22
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} AccUnitLoaderForm
33
Caption = "ACLib - AccUnit Loader"
4-
ClientHeight = 3822
4+
ClientHeight = 4473
55
ClientLeft = 119
66
ClientTop = 462
77
ClientWidth = 9373
@@ -65,7 +65,7 @@ Private Sub UserForm_Initialize()
6565
Me.Caption = .ApplicationTitle & " (Version " & .Version & ")"
6666
End With
6767

68-
LoadIconFromAppFiles
68+
' LoadIconFromAppFiles
6969

7070
With CurrentAccUnitConfiguration
7171
On Error GoTo ErrMissingPath
@@ -143,9 +143,11 @@ On Error GoTo HandleErr
143143
.AddMenuItem 11, "Import AccUnit files from directory"
144144
#End If
145145

146+
If ThisWorkbook.CustomDocumentProperties.Count = 10 Then
146147
.AddMenuItem -2, "", MF_SEPARATOR
147148
.AddMenuItem 21, "Export AccUnit files to directory"
148149
.AddMenuItem 22, "Remove AccUnit files from Add-In file"
150+
End If
149151

150152
.AddMenuItem -3, "", MF_SEPARATOR
151153
.AddMenuItem 31, "Remove test environment incl. test classes"
@@ -169,6 +171,7 @@ On Error GoTo HandleErr
169171
SuccessMessage = "AccUnit files removed from Add-In file"
170172
Case 31
171173
RemoveTestEnvironment True
174+
SetEnableMode
172175
SuccessMessage = "Test environment end test classes removed"
173176
Case 32
174177
RemoveTestEnvironment False
@@ -198,6 +201,22 @@ HandleErr:
198201

199202
End Function
200203

204+
Private Sub cmdExportFilesToFolder_Click()
205+
206+
On Error GoTo HandleErr
207+
208+
ExportAccUnitFiles
209+
ShowSuccessInfo "AccUnit files exported"
210+
211+
ExitHere:
212+
Exit Sub
213+
214+
HandleErr:
215+
ShowErrorHandlerInfo "cmdInsertFactoryModule_Click"
216+
Resume ExitHere
217+
218+
End Sub
219+
201220
Private Sub cmdSelectAccUnitDllPath_Click()
202221

203222
Dim SelectedAccUnitDllPath As String
@@ -230,7 +249,12 @@ Private Sub SetEnableMode()
230249
bolPathExists = Len(Me.txtAccUnitDllPath.Value & vbNullString) > 0
231250

232251
Me.cmdSetAccUnitTlbReferenz.Enabled = bolPathExists
233-
Me.cmdInsertFactoryModule.Enabled = bolPathExists
252+
With Me.cmdInsertFactoryModule
253+
.Enabled = bolPathExists
254+
If bolPathExists Then
255+
.Enabled = (ThisWorkbook.CustomDocumentProperties.Count = 10)
256+
End If
257+
End With
234258

235259
End Sub
236260

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)