Skip to main content

PUNCH

Returns a punch attribute from the current day by specifying which punch ("First", "Last", "Any") and the attribute to return

Example Usage

PUNCH("2022-03-22", "First", "Excused") -> 1 if "Excused" exists in the first punch record of the day and is selected

Overview

Function signature
PUNCH(paydate, whichone, column)

Category
Database

Return data type
None

Arguments

NameDataTypeList Options                          Description
paydatedateThe pay date to search for punches
whichonelistFirst
Last
Any
Determines which punch to return from the current days data
columnstringThe column to return from the selected punch. If "Any" was chosen for "whichone", then any punch with a non-Null value for column will be used as the return source