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
Server security analysis to determine patch level
C# ASP.NET code hanging for no reason...
ACT 2009! registration error, windows 7 (exception error popup)
riddle vb.net calling unmanaged c++ dll
QOS And routing behind a bridged device on Cisco 2800 series router
cant pass list
Operator '=' is not defined for type 'DBNull' and type 'Integer' - how to fix
How can I uninstall a corrupt broadcom driver?
Cisco ASA CSC setup
What are some good guides on designing and building video games