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
Setting up a PC with Multiple Operating Systems (Windows 98 and Windows XP Pro)
Required Field Validator for 2 controls
Emphasize an out of range value in Excel.
Upgrade Sqlite in RHEL5.4
System.FormatException:Dat
agridviewC
omboboxcel
l value is not valid
How do I enable audio mapping over RDP on Windows 7?
OMA problem in Exchange 2010 - HTTP Error 500.24
SBS server 2003 VPN connection
Folders UNIDs and Duplicates
Motherboard driver CD for HCL - P5GD2-TVM/GB/SI