Public Function DateOnly(d As Date, Optional DefTime As Date = #12:00:00 AM#) As Date
Returns the date part only of a date/time.
Optionally sets a specific time of day (default is midnight)
Selected framework method wrappers
Returns the date part only of a date/time.
Optionally sets a specific time of day (default is midnight)
Like DateOnly(), but will accept a variant that may be Null, a Date or a String.
Same as q() but adds and escapes double quotes.
Is the variable empty (Null, or empty string) ? This is named in the tradition of very short, much used functions like nz() and iif(). Pronounce 'Em Tee', and we use this name because Empty and IsEmpty() are already taken in VBA.
Like the built in nz() function, but substitutes second value if mt() is true.
Adds single quotes around the passed value. Quotes are escaped, so for example if the value O'Leary was passed, the result would be 'O''Leary'. This form of escaping is supported by JET and MSSQL Server. The value NULL returns empty quotes (ie. ''). Using the q() function also protexcts from SQL injection attacks and results in more readable code.
Returns the value from the first column and row of the result set from the passed SQL. Like DLookup, but takes a full SQL statement.
Parameter substitution: substitute the passed values for %1, %2 etc in the string
Returns the time part only of a date/time.
Like TimeOnly(), but will accept a variant that may be Null, a Date or a String.
The special function used as the ListBox or ComboBox RowSourceType.
See help: RowSourceType Property (User-Defined Function) - Code Argument Values Because this function is called repeatedly it has a tendency to spew errors when something goes wrong. For this reason, there is a time delay on the error messaging. Once an error occurs, it waits xf_DataListErrSuspendSecs (by default 20) seconds before raising another error. This gives the user time to change to design mode or reset the code.
Undocumented in this release
The special function used as the ListBox or ComboBox RowSourceType.
See help: RowSourceType Property (User-Defined Function) - Code Argument Values Because this function is called repeatedly it has a tendency to spew errors when something goes wrong. For this reason, there is a time delay on the error messaging. Once an error occurs, it waits xf_DataListErrSuspendSecs (by default 20) seconds before raising another error. This gives the user time to change to design mode or reset the code.