I need this specific button to close down a window on top of doing everything else that its doing. The problem is I can't fit in the UpdateContext function that I need for it to close such window.
Here's the code:
With(
{lclTime: TimeValue(ddAdjustHour.Selected.Value & ":" & ddAdjustMinute.Selected.Value)};
UpdateIf(
'Time Tracker';
ID = lclCorrection.ID;
{
ActivityDateTime: lclTime;
ActivityDate: Now()
}
)
)
And here's what I need to fit in:
UpdateContext({lclCorrection:Blank()})
I've seen it say that it expects an operator, but then if I use "&&" it breaks the rest of the code saying it expects a valid argument (boolean, number, text, OptionSetValue). Depending on where I insert it, it says it can't be used inside the With function. Any ideas?