I have been working all morning to figure this out and I can't seem to find any information on it. I am trying to produce some code to check a query and see if it is empty. Here is what I am using:
It keeps coming back telling me it has data. I run the query, but no data. Here is the query
I'm just comparing the version(the only field in the table). Please help, it's driving me mad.
PHP:
Option Compare Database
Public Function VersionChk()
DoCmd.OpenQuery "Version Qry"
If IsNull(Version) = True Then
MsgBox "No Update Needed", vbOKOnly
Elseif IsNull(Version) = False Then
MsgBox "Needs Update", vbOKOnly
End If
End Function
PHP:
SELECT [Version TBL1].Version, [Version TBL].Version
FROM [Version TBL] RIGHT JOIN [Version TBL1] ON [Version TBL].Version = [Version TBL1].Version
WHERE ((([Version TBL].Version) Is Null));