Skip to content

Commit 4dd870f

Browse files
authored
Set VbProjectRef if missing (#48)
1 parent a639d59 commit 4dd870f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

access-add-in/AccUnitLoader.accda

0 Bytes
Binary file not shown.

access-add-in/source/modules/_config_Application.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Option Compare Text
1818
Option Explicit
1919

2020
'Version number
21-
Private Const APPLICATION_VERSION As String = "0.9.400.240320"
21+
Private Const APPLICATION_VERSION As String = "0.9.401.240323"
2222

2323
Private Const APPLICATION_NAME As String = "ACLib AccUnit Loader"
2424
Private Const APPLICATION_FULLNAME As String = "Access Code Library - AccUnit Loader"

access-add-in/source/modules/modTypeLibCheck.bas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Public Sub CheckAccUnitTypeLibFile(Optional ByVal VBProjectRef As VBProject = No
2828
Dim ExportFile As Boolean
2929
Dim FileFixed As Boolean
3030

31+
If VBProjectRef Is Nothing Then
32+
Set VBProjectRef = CodeVBProject
33+
End If
34+
3135
LibPath = GetAccUnitLibPath(True)
3236
LibFile = LibPath & ACCUNIT_TYPELIB_FILE
3337
FileTools.CreateDirectory LibPath
@@ -46,10 +50,6 @@ Public Sub CheckAccUnitTypeLibFile(Optional ByVal VBProjectRef As VBProject = No
4650
End If
4751

4852
On Error Resume Next
49-
If VBProjectRef Is Nothing Then
50-
Set VBProjectRef = CodeVBProject
51-
End If
52-
5353
CheckMissingReference VBProjectRef, ReferenceFixed
5454

5555
ReferenceFixed = ReferenceFixed Or FileFixed

0 commit comments

Comments
 (0)