Hello,
After installing windows update KB5064081 on Windows 11 machine, the following piece of code crashes
on Access 2016:
The problem seems to occur due to the following lines:
and
The event viewer reports the following error
Are there any workarounds for this problem besides uninstalling KB5064081?
Thank you very much in advance!
Best Regards,
After installing windows update KB5064081 on Windows 11 machine, the following piece of code crashes
on Access 2016:
Code:
Public Sub CreateTable(strPath As String)
Dim cat As ADOX.Catalog
Dim tbl As ADOX.Table
Dim idx As ADOX.Index
Dim flag As Boolean
Set cat = New ADOX.Catalog
cat.Create "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strPath
Set tbl = New ADOX.Table
With tbl
.Name = "Products"
.columns.Append "Id", adInteger
.columns.Append "No", adInteger
.columns.Append "Percentage", adSingle
.columns.Append "Code", adVarWChar, 50
Set .ParentCatalog = cat
.columns("Id").Properties("Default") = 0
.columns("No").Properties("Autoincrement") = True
.columns("Percentage").Properties("Default") = 100
.columns("Percentage").Properties("Nullable") = False
.columns("Code").Properties("Jet OLEDB:Allow Zero Length") = False
End With
cat.Tables.Append tbl
Set tbl = Nothing
End Sub
The problem seems to occur due to the following lines:
Code:
.columns("Id").Properties("Default") = 0
Code:
.columns("Percentage").Properties("Default") = 100
The event viewer reports the following error
Are there any workarounds for this problem besides uninstalling KB5064081?
Thank you very much in advance!
Best Regards,