azizrasul
Well-known Member
- Joined
- Jul 7, 2003
- Messages
- 1,304
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Online help states that if either string1 or string2 is Null, then StrComp returns a Null value. I tried
Option Compare Database
Dim var1 As Variant
var1 = StrComp("ABC", Null)
and I get -1, NOT Null as the online help suggests.
Can anyone explain how I get a Null value from StrComp. If this is not possible, then why not use
Dim var1 As Integer
Option Compare Database
Dim var1 As Variant
var1 = StrComp("ABC", Null)
and I get -1, NOT Null as the online help suggests.
Can anyone explain how I get a Null value from StrComp. If this is not possible, then why not use
Dim var1 As Integer