K
kim de winter
I'm trying to use the like operator in a subroutine but
for some reason I does not seem to work.
This is what I typed in the sub:
If rst2!fldfield1 = " Like ""*MILK*""" Then
yreq = (rst2!fldnrorder) * 2
Else
yreq = rst2!fldnrorder
End If
You see whenever the condition encounter thge
string 'MILK' then rst!fldnrorder should be multiplied by
2. Any help is most appreciated.
for some reason I does not seem to work.
This is what I typed in the sub:
If rst2!fldfield1 = " Like ""*MILK*""" Then
yreq = (rst2!fldnrorder) * 2
Else
yreq = rst2!fldnrorder
End If
You see whenever the condition encounter thge
string 'MILK' then rst!fldnrorder should be multiplied by
2. Any help is most appreciated.