Access Expert 27
01. Date Time Now 1 (24:49)
Inserting DateTime Shortcut Keys
Insert Date with Ctrl-;
Insert Time with Ctrl-:
Insert Date from Previous Record with Ctrl-'
Date Time Functions
Date(), Time(), Now() Functions
Display Current Date in Unbound Form Field
Use as Default Value in a Table Field
Use as Default Value in a Form Field
Format Function Parameters
Show Date as "Monday, December 15, 2014"
Two Digit Year Cutoff - 2030 Problem
Automatically Timestamp New Records
Show Records From Today
Show Records in the Past
Show Records in the Future
Show Records on a Specific Date
Show Records NOT on a Specific Date
Show Records Between Two Dates
Show Records NOT Between Two Dates
Show Records Outside of a Date Range
Show Records on Specific Dates with IN() Function
02. Date Time Now 2 (37:17)
DateTime Mathematics
Date Stored as a Number
Number of Days Since 12/30/1899
Good Enough for Most Circumstances
Watch for Dates with Times with Between
Show Records From Today With Times
Show Records Between Two Dates With Times
Show Records on a Specific Date With Times
Show Records For Tomorrow
Show Records from Yesterday
Show Records Within one week from today
Birthdays From Now until Next Week
Orders Less than One Week Old
Aged Accounts Receivable
Query with Orders, OrderDetailQ, CustomerT
Need DueDate, CompanyName, OrderTotal
Order must be an Invoice and Not Paid
Aggregate Totals Group By ID, SUM Total
Put Aging in Second Query (for clarity)
Use IIF Function to Add Aging Data
Current Orders
Less than 30 days old
Between 30 and 60 days old
More than 60 days ago
Number of Days Late
Accounts Receivable Report
Conditional Formatting to Hide Zero Amounts
Totals in Report Footer
03. Date Time Now 3 (25:24)
Hours as Fractions of a Day
One Hour in the Future
Five Minutes in the Past
CDate() Function Convert Numbers or Text as Date
Calculating Age "Good Enough" Div by 365.242
Calculating Age in Whole Years
Display Total Time Worked in hh:nn
Display as 8:30, 8.5, and "08h 30m"
Timesheet Spanning Midnight
Original Worklog used Date and Time
What if you have only Time in your log?
Showing 24:00 in WorkLog instead of 00:00
Format two digits
|