Subject: RE: Dialog box fails on one client!
There’s an Authors field, but this user has Editor access (as Receptionist, she needs to be able to check everyone out, not just herself).
Her access hasn’t been changed in years, in fact.
It’s evidently some kind of bug that rears its ugly head once in a blue moon. I think something gets corrupted in the workspace or cache or something. I’ll keep messing with it.
In case you’re interested, here’s the code…
FIELD DOutDate:=@Now;
FIELD DOutTime:=@Now;
FIELD DInDate:=@Adjust(@Now;0;0;0;1;0;0);
FIELD DInTime:=@Adjust(@Now;0;0;0;1;0;0);
FIELD DLocation:=“not selected”;
FIELD DContact:=DefaultContact;
FIELD DComment:=DefaultComment;
UButton:=@DialogBox(“Checkout Dialog”;[AutoHorzFit]:[AutoVertFit];“Custom Check-Out”);
@If(UButton;“”;@Return(“”));
Y2KDate1:=@Adjust(DInDate;100;0;0;0;0;0);
@If(DInDate<@Date(1990;1;1);@SetField(“DInDate”;Y2KDate1);“”);
Y2KDate2:=@Adjust(DOutDate;100;0;0;0;0;0);
@If(DOutDate<@Date(1990;1;1);@SetField(“DOutDate”;Y2KDate2);“”);
OutCombined:=@TextToTime(@Text(DOutDate;“D1S0”)+" "+@Text(DOutTime;“T1S1”));
@If(OutCombined<@Adjust(@Now;0;0;0;0;15;0);@Do(@SetField(“OutDate”;DOutDate);@SetField(“OutTime”;DOutTime);@SetField(“InDate”;DInDate);@SetField(“InTime”;DInTime);@SetField(“Location”;DLocation);@SetField(“Contact”;DContact);@SetField(“Comment”;DComment);@SetField(“InOut”;“Out”));@Do(@SetField(“FutureOutDate”;DOutDate);@SetField(“FutureOutTime”;DOutTime);@SetField(“FutureInDate”;DInDate);@SetField(“FutureInTime”;DInTime);@SetField(“FutureLocation”;DLocation);@SetField(“FutureContact”;DContact);@SetField(“FutureComment”;DComment)))