Samantha
still learning...
- Local time
- Today, 10:24
- Joined
- Jul 12, 2012
- Messages
- 182
I am running Access 2010, and don't do this enough to really know what I'm doing. I have googled this and searched these threads for most of the day in an attempt to solve this issue. Frankly, I could be going about it completely wrong.
In laymen's terms I am attempted to run this code on a onclick event for a merge procedure. I am attempting to make it say: If the project type is TM and the TM Rate is null then display message box, exit the procedure and set focus to the control.
Thanks for your time!:banghead:
In laymen's terms I am attempted to run this code on a onclick event for a merge procedure. I am attempting to make it say: If the project type is TM and the TM Rate is null then display message box, exit the procedure and set focus to the control.
Code:
'Check TM Rate for a value
If (([Project_Type]) = "1") Then
ElseIf IsNull(TMRate) Or TMRate = "" Then
MsgBox "Please fill in the Time and Materials Rate before proceeding", vbOKOnly
TMRate.SetFocus
GoTo Exit_Procedure
End If
Thanks for your time!:banghead: