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
XBMC live boot error
Column Name in query
How can I prevent changes to web browser proxy settings?
Quickr..How do I edit the tabs on the home page of my place? I want to add a tab
Event ID 1030 and 1058 Missing gpt.ini - Group Policy
Regular expression and dash in JavaScript
How to collaspe a menustrip in vb.net?
Free/Busy Information not available to Outlook 2007 users Exch2007 in coexistense with Exch2003
Can't Remote Desktop to Forefront TMG Server
Keystore file to sign jar via a thawte code signing certificate