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
outlook folder import macro
How to remove new line from a string
Oracle Error "To many precesion Specifiers"
PHP, ASP, Moneris
How do I reverse tunnel with Putty?
A Web Exception occurred because an HTTP 401 - Unauthorized response was received from Unknown
How to pause a process execution in C++
emc cx600 - how do I get dell 64 bit server to see the emc harddrives
Exchange 2007 - Error 5.1.0 - Unknown address error 550-'5.1.1 User unknown'
Group By Sql Query