NJudson
Who farted?
- Local time
- Today, 13:34
- Joined
- Feb 14, 2002
- Messages
- 297
I'm using Access 2000 and I have code that is written
If Table1.Field(0) = "JoeBob (104)" then
Test = True
ElseIf InStr(Table1.Field(0), "104") then
Test = True
ElseIf Right(recTable1.Field(0), 5) = "(104)" then
Test = True
End If
Where the value for recTable1.Field(0) = JoeBob (104)
This check should test true for all 3 conditions but it doesn't. It's driving me crazy and I can't figure out why it doesn't work. Has anyone ever experienced this before. Thanks for any help.
If Table1.Field(0) = "JoeBob (104)" then
Test = True
ElseIf InStr(Table1.Field(0), "104") then
Test = True
ElseIf Right(recTable1.Field(0), 5) = "(104)" then
Test = True
End If
Where the value for recTable1.Field(0) = JoeBob (104)
This check should test true for all 3 conditions but it doesn't. It's driving me crazy and I can't figure out why it doesn't work. Has anyone ever experienced this before. Thanks for any help.