Sullster47
New member
- Local time
- Today, 01:55
- Joined
- Apr 29, 2021
- Messages
- 2
I have an if statement where i need to see if the time of a field is between 8pm and 6 am. If it is, we have a different rate but i can't get the if statement to work.
i have:
If me.txtTime < #5:59:00 AM# and me.txtTime > #7:59:00 PM# then
me.txtrate.vale = CDbl(Nz(me.SatNightRate))
else
me.txtrate.vale = CDbl(Nz(me.SatRate))
end if
any help much appreciated
thanks
i have:
If me.txtTime < #5:59:00 AM# and me.txtTime > #7:59:00 PM# then
me.txtrate.vale = CDbl(Nz(me.SatNightRate))
else
me.txtrate.vale = CDbl(Nz(me.SatRate))
end if
any help much appreciated
thanks