Microsoft
Software
Hardware
Network
Question : Data validation before moving to next record
I have an Access form with the navigations buttons enabled to the default yes. I wanted to create a small check of the data keyed in that before a user moves to the next record if
If Me.Received.Value = True and Me.DateHoldReleased is null then stop moving to the next record and set focus and require the "DateHoldReleased" is keyed in
So I basically need to make sure that once the Received checkbox is checked that a valid data is entered in the "DateHoldReleased"
how can I accomplish this?
Answer : Data validation before moving to next record
use the form's beforeupdate event
private sub form_beforeupdate(cancel as integer)
If Me.Received.Value = True and IsNull(Me.DateHoldReleased
) then
msgbox "required field"
me.DateHoldReleased.setfoc
us
cancel=true
end if
end sub
Random Solutions
google search API C# jSON question
Call Procedure from VB6 and pass paremeters
DP 6.0 Win2K cell mgr - backup to iSCSI lun using file device
Replace apostrophes in all Session Variables in C#?
htaccess Partial Query String Rewrite
Determine standard default font in a form object in excel forms collection
How do I push IE 8 through WSUS using Group polciy
KMS is activating Win7 Pro but not Win 2008 R2 Enterprise
restore from DB?
Is there a backup/disaster recovery solution that doesn't cost a fortune?