G
Guest
Hi,
I have a form with an embedded subform. I have added the following event on
the subform exit properties and it works:
If Subtotal_Rev_Adj_Loc_Cur = 0 Then Forms![2a Input Template Brussels Top
Line].[Closed On] = Now()
Now I tried to change it to this:
If Subtotal_Rev_Adj_Loc_Cur = 0 Then Forms![2a Input Template Brussels Top
Line].[Closed On] = Now() and Forms![2a Input Template Brussels Top
Line].[Closed By] = CurrentUser()
but nothing happens.
I tried each functions individully (now() and currentuser()) as a part of
then statement and they both work. But they don't work together.
I thought that using IF was rather straight forward: "if condition then
result1 and result2"
but I guess I'm doing something wrong. If anyone knows what it is I would
really appreciate your help.
Thanks a lot in advance.
I have a form with an embedded subform. I have added the following event on
the subform exit properties and it works:
If Subtotal_Rev_Adj_Loc_Cur = 0 Then Forms![2a Input Template Brussels Top
Line].[Closed On] = Now()
Now I tried to change it to this:
If Subtotal_Rev_Adj_Loc_Cur = 0 Then Forms![2a Input Template Brussels Top
Line].[Closed On] = Now() and Forms![2a Input Template Brussels Top
Line].[Closed By] = CurrentUser()
but nothing happens.
I tried each functions individully (now() and currentuser()) as a part of
then statement and they both work. But they don't work together.
I thought that using IF was rather straight forward: "if condition then
result1 and result2"
but I guess I'm doing something wrong. If anyone knows what it is I would
really appreciate your help.
Thanks a lot in advance.