<source>SELECT ItemID, Format([ApptDate],"ddd") AS DayFROM ¯qApptDate;</source>|<source>SELECT ItemID, Format([DateDue],"ddd") AS DayFROM ¯qDateDue;</source>
Thank you.
--
Jan Rifkinson
Ridgefield CT USA
Comments
Field options <source> tag is a way to create fields from other fields. In this case, you want to get a field that will give the day of the week of a field called ApptDate
Enter the following in the options of a text field, named "Day"
<source>SELECT ¯qItemCreated.ItemID, Format(IIf(IsNull([datedue]),[ItemCreated],[DateDue]),"ddd") AS [day] FROM ¯qItemCreated LEFT JOIN ¯qDateDue ON ¯qItemCreated.ItemID = ¯qDateDue.ItemID; </source>
The field Day should display the Day of DateDue if present, otherwise the day of ItemCreated
Comments
FROM ¯qItemCreated LEFT JOIN ¯qDateDue ON ¯qItemCreated.ItemID = ¯qDateDue.ItemID;
</source>