Microsoft
Software
Hardware
Network
Question : New record, if field is empty, msgbox
Experts,
If I am on a form and the record is new and txtType is blank and someone trys to close form, I need a msgbox that says "Enter Type" and then cancels the close of the form.
Thank you.
Answer : New record, if field is empty, msgbox
do this in the beforeupdate evnt of the form
private sub form_BeforeUpdate(cancel as integer)
if len(me.txtType & "")=0 then
msgbox "Enter Type"
me.txtType.setfocus
cancel=true
exit sub
end if
end sub
Random Solutions
View generated source with vb.net httpwebrequest
Exchange 2003 Email Delays
Small Business mathematics
How do I (re-)enable heap memory allocation within a CWinThread-derived class thread function invoked directly from InitInstance?
SQL union to fill date data series gaps for SSRS year on year chart
Out of Office Assistant not working w/Forwarding Configured
blue screen on Server2003 install
Strip out ’s in mySQL query | XML Parsing Error: undefined entity
Net Use returns "System error 64 has occurred. The specified network name is no longer available."
how to save blackberry notes