Skip to content

Commit acca733

Browse files
committed
+ info about Application.UserControl
1 parent 107cb92 commit acca733

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/Build-Accdb.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ else {
2828
$access.OpenCurrentDatabase($accdbPath)
2929
}
3030

31+
# Check UserControl
32+
[bool]$accessUserControl = $access.UserControl
33+
Write-Host "Access User Control Mode: $accessUserControl"
34+
if ($accessUserControl -ne $true) {
35+
Write-Host "Access is not in user control mode => maybe msaccess-vcs does not work completely."
36+
}
37+
3138
[string]$addInProcessPath = ""
3239
if ($VcsAddInPath -gt "") {
3340
$addInProcessPath = [System.IO.Path]::ChangeExtension($VcsAddInPath, "").TrimEnd('.')
@@ -98,7 +105,6 @@ Write-Host ""
98105
if ( ($builtFileName -gt "") -and ($builtFileName -ne "$tempFileName.accdb") ) {
99106
Write-Host "Built: $builtFileName ($builtFilePath)"
100107
} else {
101-
102108
Write-Host "Build failed"
103109
if ([string]::IsNullOrEmpty($builtFileName)) {
104110
Write-Host " (builtFileName is empty)"

0 commit comments

Comments
 (0)