Skip to content

Commit

Permalink
Use alternate null testing in SQL statement
Browse files Browse the repository at this point in the history
A user reported this triggering an error on their system. Using a more simple comparison to test for null. #384
  • Loading branch information
joyfullservice committed Mar 6, 2023
1 parent 95f217c commit 005dbd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Version Control.accda.src/dbs-properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"Type": 10
},
"AppVersion": {
"Value": "4.0.8",
"Value": "4.0.9",
"Type": 10
},
"Auto Compact": {
Expand Down
2 changes: 1 addition & 1 deletion Version Control.accda.src/modules/clsDbTableDataMacro.cls
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Private Function IDbComponent_GetAllFromDB(Optional blnModifiedOnly As Boolean =
If Left$(tdf.Name, 1) <> "~" Then
If Len(tdf.Connect) = 0 Then
' Check to see if the table has a data macro
strSql = "Not IsNull(LvExtra) and Type = 1 and [Name] = """ & tdf.Name & """"
strSql = "(LvExtra is not null) and (Type = 1) and ([Name] = """ & tdf.Name & """)"
If DCount("[Name]", "MSysObjects", strSql) > 0 Then
Set cTable = New clsDbTableDataMacro
Set cTable.DbObject = CurrentData.AllTables(tdf.Name)
Expand Down

0 comments on commit 005dbd5

Please sign in to comment.