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
SQL Server 2005 paging and UNION
Dell Equallogic script to replicate ONE-to-MANY (Cascading Replication)
Win 7 Pro Virtual Pc XP Mode visible in the network but not accessible
ASP.NET Error: The page was not displayed because the request entity is too large.
ASP .NET IIS 7 Word Interop Mail Merge (Interact With Desktop)
Windows 7 roaming profiles
Just before the end the FTP download failed due to time out in Windows 2000.
SSIS/TSQL Three Part Naming for Temp Table
MS Access Table
How to successfully change IP address on Microsoft Exchange