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
Dot Net Written Test and Interview questions, Can any 1 suggest link
Sort Mysql table with recent entries
Replace sring on the first line and then replace ALL the following string(2 to eof)
ForeFront TMG Intermittent Internet Connection
What does it mean if I am receiving output errors on all of my Cisco Aironet 1130AG?
Why Not able to read excel file in the Web application running on Windows7/Office2010?
‘Browse’ button component in jsf
Code was working in Android 2.1 SDK but not on 2.2
Gateway SA1 shutting down intermittently
compareTo() - JavaScript example needed