Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Date Criteria Help Needed

$
0
0
I want one form to open if the dates are between 2 defined fields on another form, if not then I want it to open another form instead.
The first form that should open if the current date falls between the 2 parameters is named frmSetPayDate
The other form that should open if the date criteria does not fall between the 2 dates is named Set TimeCards Date

The 2 fields on the other form which is named frmAutoPayrollReport

are named BeginDate and EndDate

BeginDate being the start of the date week and EndDate being the end of the date week criteria.

Something kinda sorta like this;
IfCDate is Between Forms!frmAutoPayrollReport!BeginDate and Forms!frmAutoPayrollReport!EndDate Then ' 2 fields on another form that is open
DoCmd.Open form frmSetPayDate ' Form
Else

open Set TimeCards Date' Form

CDate referes to the date now. If I got it right

Viewing all articles
Browse latest Browse all 13329

Trending Articles