Chey,
Assuming [TA] is on the Main form... use the Main form Current event...
Private Sub Form_Current()
Dim Response as Variant, Prompt as String
Prompt = "No Travels to Approve"
If IsNull([TA]) Then
Response = MsgBox Prompt, vbOKonly
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13999
DoCmd.Close
End If
--
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
There are 10 types of people in the world.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13999
Those who understand binary, and those who don't.
"Chey"
wrote in message
news:367BFBAA-953F-43FA-B8B0-7C6BA3298B2E@microsoft.com...
>I have a form
> When I open it if TA Number is null, the I want a message box to appear, no
> travels to approve. And then an okay to click on to close the form.
>
> Can someone please help me with this?