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
Required Field Validator for 2 controls
Wireless Access Point - Hard Plastics Protective Cover
Accessing an NT4 Share from Server 2008
Setting Up Exchange Email on Apple IPAD
Error while attempting to uninstall SQL Server R2/VS2008
SCCM Software Report By Major Revision
Show only first 25 rows of querry result
search/scan Exchange for "credit card numbers"
Is it ok to plug a simple power strip into a UPS
DELETE DUPLICATE RECORD from TABLE in SQL Server 2005