NotSoRandomOne
Registered User.
- Local time
- Today, 00:03
- Joined
- Sep 15, 2009
- Messages
- 51
I really want to just compare two strings and see if they are the same. Of course, the first thought is to write
But that won't work, because Access doesn't work that way. So I tried this:
when freqBoxValue = Null, and StrComp returns Null, I thought this should 'doStuff'. It doesn't. What am I missing?
Background: I'm trying to see if a text box value on a form has changed from its initial value during OnUpdate. If it has changed, doStuff.
Code:
if str1 <> str2 then doStuff
Code:
Dim temp As Variant
temp = StrComp(freqBoxValue, FrequencyScheduleBox.Value)
If temp <> 0 Or temp = Null Then
doStuff
End If
Background: I'm trying to see if a text box value on a form has changed from its initial value during OnUpdate. If it has changed, doStuff.