Question Auto Close form after update

josephbupe

Registered User.
Local time
Today, 15:02
Joined
Jan 31, 2008
Messages
247
Hi,

I have a form with three field:

CaseName, CaseDate, CaseStatus

All I need is a small code that would display message and close the form automatically after user enters data in all the three. All fields should be mandatory.

Thanx.

Joseph
 
Try this in the afterupdate of the last text box:
Code:
if casename<>"" and casedate<>"" and casestatus<>"" then
me.form.close
else
msgbox "fill in all the boxes"
endif

I think that's the right syntax anyway
 

Users who are viewing this thread

Back
Top Bottom