Hello,
I have a database which users input multiple date records which contain month/year. In addition, there are two specific dates which are entered into the database, a start and end date (which are month/day/year).
All records that the user enters (month/year) must fall between the range of the start and end date (month/day/year).
How exactly would I enforce such a verification?
I have a database which users input multiple date records which contain month/year. In addition, there are two specific dates which are entered into the database, a start and end date (which are month/day/year).
All records that the user enters (month/year) must fall between the range of the start and end date (month/day/year).
How exactly would I enforce such a verification?
Code:
'Checks to ensure recuiting period is within enrollment start and expected enrollment complete
If DLookup("[Study_ID]", "dbo_Metrics", "[Study_ID] = '" & Me.Study_ID & "'AND [Report_Per_Mo] = " & Me.Add_Report_Per_Mo & " AND [Report_Per_Yr] = " & Me.Add_Report_Per_Yr & "") < St_Dt_Metrics OR > Dt_Exp_Enroll_Complete Then
MsgBox "The recruiting period entered does not fall between the start date of enrollment metrics and date expected enrollment complete.", vbCritical + vbOKOnly + vbDefaultButton1, "Warning!"
Else
End If