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
show ip eigrp neighbors - What does the 'H' stand for ?
Execute Oracle Stored Procedure From SQLServer 2005
use wireshark to capture whats happening during the logon process
How to send email from Outlook when away from the Exchange Server?
How to read the data from MQRFH2 messages using MQ connector stage
Accessing an FTP server internally that is on a different subnet.
GETDATE and GETUTCDATE does not exist in MySQL
Convert XenServer xva to VMware Server.
How do create a Windows batch script to start a service and set to automatic
My Computer/ Explorer Not responding Windows XP