I am using the following to Select the textbox when the date is before another date.  I thought it wasn't working.  However when I stepped through the code it does select the text until the End Sub and then becomes unselected.  I have this in the after update event.  Is this the right spot?  Or should I use another technique to highlight the textbox for user to decide whether to adjust the date.
	
	
	
		
DateSelected is how it looks prior to End Sub and DateNotSelected is how it looks when the code has finished.
		
		
	
	

 
		Code:
	
	
	If Me.tb_DateTaken < dtRWP Then
        MsgBox "Training Date of " & Me.tb_DateTaken & " is before the RWP date of " & dtRWP & ".  Please verify this is correct or enter a date after the RWP date.", vbOKOnly + vbQuestion, "Date Issue"
        Me.tb_DateTaken.SetFocus
        Me.tb_DateTaken.SelStart = 0
        Me.tb_DateTaken.SelLength = Len(Me.tb_DateTaken)
    End If
End SubDateSelected is how it looks prior to End Sub and DateNotSelected is how it looks when the code has finished.


 
	 
 
		 
 
		 The new issue is it puts up a message box "The value violates the validation rule for the field or record".  Since the user has already been prompted that there is an issue, this secondary message is not needed.  I put in an error handler and stepped through the code and like before the error message pops up after the code has finished (Pressing F8 on End Sub).  It does not seem to be generating an error while in the code as I did a debug.print just before the End Sub for err.Number and it was 0.
 The new issue is it puts up a message box "The value violates the validation rule for the field or record".  Since the user has already been prompted that there is an issue, this secondary message is not needed.  I put in an error handler and stepped through the code and like before the error message pops up after the code has finished (Pressing F8 on End Sub).  It does not seem to be generating an error while in the code as I did a debug.print just before the End Sub for err.Number and it was 0. 
 
		 
 
		