I created the following coding to prevent days from being unintentionally skipped. It has worked fine until after the first entry of the last day of the month is reached, as I discovered today, in other words, after the 2am entry is made, the 4am entry can't be made. I realize that I'm comparing the current date value to itself plus 1, what I can't figure out is how to make it not skip the rest of the day. I hope I explained it well enough, I've also included an attachment to help if at all possible.
If cboDate.Value > Format(DateAdd("d", 1, txtLDate.Value), "dd-mmm-yy") Then
Me.cboDate.SetFocus
MsgBox "Whoa there partner!!!" & vbLf & "Slow those horses down some!!!" & vbLf & _
"The " & Format(DateAdd("d", 1, txtLDate.Value), "dd-mmm-yy") & " Thermals are missing" & vbLf & _
"Enter them first cowboy.", vbExclamation, "Missing A Date"
Exit Sub
End If
FixMe.xlsm
Bookmarks