caringsharingbristolbilly
Board Regular
- Joined
- Mar 23, 2004
- Messages
- 241
Hi everyone...
Could someone have a look at the following and tell me why the SetFocus isn't working? I think I've followed the syntax correctly, but I could be wrong...
I want the Date_Completed field to be highlighted once all the other gubbins has run, but it's currently still moving on to the next control...
Any help would, as always, be greatly appreciated.
Could someone have a look at the following and tell me why the SetFocus isn't working? I think I've followed the syntax correctly, but I could be wrong...
I want the Date_Completed field to be highlighted once all the other gubbins has run, but it's currently still moving on to the next control...
Code:
Private Sub Date_Completed_AfterUpdate()
If Me.Date_Completed < Me.Last_Updated Then
MsgBox "The date you have entered is before the date the error was created. Please check the date and try again.", 48, "No!"
Me.Date_Completed = Null
Date_Completed.SetFocus
End If
End Sub
Any help would, as always, be greatly appreciated.