X
xiaodan86
If I wan to perform some calculation in the query if the condition
meet, how can combine the below statement tgt in one field?
Minutes: IIf([start]>DateAdd("d",-1,[forms]![datedaily1]![date] And
[end]<[forms]![datedaily1]![date]),DateDiff("n",[start],[end]))
Minutes: IIf([start]<DateAdd("d",-1,[forms]![datedaily1]![date] And
[end]<[forms]![datedaily1]![date]),DateDiff("n",DateAdd("d",-1,[forms]!
[datedaily1]![date],[end]))
Minutes: IIf([start]<DateAdd("d",-1,[forms]![datedaily1]![date] And
[end]>[forms]![datedaily1]![date]),3600)
Minutes: IIf([start]>DateAdd("d",-1,[forms]![datedaily1]![date] And
[end]>[forms]![datedaily1]![date]),DateDiff("n",[start],[forms]!
[datedaily1]![date]))
Any syntax needed in order to combine "IIf" statement?
meet, how can combine the below statement tgt in one field?
Minutes: IIf([start]>DateAdd("d",-1,[forms]![datedaily1]![date] And
[end]<[forms]![datedaily1]![date]),DateDiff("n",[start],[end]))
Minutes: IIf([start]<DateAdd("d",-1,[forms]![datedaily1]![date] And
[end]<[forms]![datedaily1]![date]),DateDiff("n",DateAdd("d",-1,[forms]!
[datedaily1]![date],[end]))
Minutes: IIf([start]<DateAdd("d",-1,[forms]![datedaily1]![date] And
[end]>[forms]![datedaily1]![date]),3600)
Minutes: IIf([start]>DateAdd("d",-1,[forms]![datedaily1]![date] And
[end]>[forms]![datedaily1]![date]),DateDiff("n",[start],[forms]!
[datedaily1]![date]))
Any syntax needed in order to combine "IIf" statement?