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
Build and run of Actuate reports
directoryInfo.GetFiles() is slow in .net.
Transition or Restructure 2003 to 2008 R2 AD? Migrate Exchange 2003 or just move to 2010?
Command to attach the database sql database file MS SQL 2000 desktop edition
Increment Value
How do i verify an age element using javascript?
Windows 7 Deployment under 802.1x Wired LAN Authentication
Modification to Sample CrossTab Database
PHP QUESTION - OSCOMMERCE - How to remove short description underneath products in Oscommerce 2.2
Dell PowerEdge 2800 server failure - RAID ADAPTER unrecoverable error